This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Avoid bugs by properly checking for -1 when a substring is not found with indexOf().
You've completed the free preview. Subscribe to unlock every lesson in every course.