You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity