Searching string methods allow you to search within strings for specific characters or substrings. They return indices or boolean values based on the search results.
| "cat".indexOf("a") | → | 1 |
| "moon".lastIndexOf("o") | → | 2 |
| "cat".includes("t") | → | true |
| "cat".startsWith("ca") | → | true |
| "cat".endsWith("at") | → | true |