how to access an index of a string inside an array javascript code example Example: indexof javascript Array.indexOf(searchElement, fromIndex)