Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate answers for Ruby Array Conditionals Loops #62

Open
amingilani opened this issue Dec 2, 2016 · 0 comments
Open

Alternate answers for Ruby Array Conditionals Loops #62

amingilani opened this issue Dec 2, 2016 · 0 comments

Comments

@amingilani
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant