Skip to content

Strings & Arrays Week 3 #2

@remarcmij

Description

@remarcmij

Hi Fayez,

Your homework looks fine. As a minor point, the assignment didn't actually ask you to delete the meerkat from the array, just to find its index and log that index to the console. But you first delete the meerkat at the position found with indexOf and then use indexOf again to report the index. At that time meerkat is no longer in the array thereforr indexOf returns -1.

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