Search an array for the specified element & return the index of the first such element found.
If no element is found, -1 is returned.
Take an optional second argument that specifies the array index at which to begin the search. If the second argument is omitted, indexOf() searches the array from the beginning to the end & lastIndexOf() searches the array from the end to the beginning.