Skip to content

Alternate answers for Ruby Array Conditionals Loops #62

@amingilani

Description

@amingilani

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions