code_quizzer icon indicating copy to clipboard operation
code_quizzer copied to clipboard

Alternate answers for Ruby Array Conditionals Loops

Open amingilani opened this issue 8 years ago • 0 comments

Hello here the question:

First

lyric = ["laughter", "it's", "free"] Get the first element of the lyric Array.

The Answer is lyric[0] and should include lyric.first

Second

lyric = ["laughter", "it's", "free"] Get the last element of the lyric Array.

The Answer is lyric[-1] or lyric[2] and should include lyric.last

amingilani avatar Dec 02 '16 16:12 amingilani