get element at a particular index in array in javascript code example Example: indexof javascript Array.indexOf(searchElement, fromIndex)