Ruby - Arrays
What will be the output of this Ruby code?
arr = [5, 10, 15, 20, 25] slice = arr[2...5] puts slice.inspect
arr = [5, 10, 15, 20, 25] slice = arr[2...5] puts slice.inspect
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions