get index of string in js code example Example: js indexof string str.indexOf(searchValue[, fromIndex])