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