if value of indexof contains string javascript code example Example: indexof javascript Array.indexOf(searchElement, fromIndex)