Fix typos

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-01-08 00:23:44 +02:00
parent 6889e55250
commit 9c7f2c1a8c
8 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ title: countSubstrings
tags: string,algorithm,beginner
---
Counts the occurences of a substring in a given string.
Counts the occurrences of a substring in a given string.
- Use `Array.prototype.indexOf()` to look for `searchValue` in `str`.
- Increment a counter if the value is found and update the index, `i`.