JavaScript string methods indexOf() and lastIndexOf(): finding an index in a string

In this video we look at two more string methods, indexOf() and lastIndexOf(). indexOf exists on both arrays and strings — we cover how the two are alike and how they differ.

Read next