This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Understand that indexOf returns -1 when the search target is not found and how to handle this case.
You've completed the free preview. Subscribe to unlock every lesson in every course.