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