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