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