Challenge for Ruby Arrays And Hashes

Challenge

What will the following code return?

array = [1, 2, 3, 4, 5]
array[1..2]

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]