js find a character in a string code example
Example 1: find in string javascript
stringToBeSearched.search(stringToBeFound);
Example 2: indexof javascript
Array.indexOf(searchElement, fromIndex)
stringToBeSearched.search(stringToBeFound);
Array.indexOf(searchElement, fromIndex)