search a character in a string in js code example Example: find in string javascript stringToBeSearched.search(stringToBeFound);