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