Ruby - Arrays
What is the output of the following Ruby code?
arr = ['a', 'b', 'c', 'd'] puts arr[-1] puts arr[-3]
arr = ['a', 'b', 'c', 'd'] puts arr[-1] puts arr[-3]
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions