javascript how to find character in string code example Example: indexof javascript Array.indexOf(searchElement, fromIndex)