ES5 Specifications included the indexOf() method for Array data structure. The indexOf() method determines whether an array contains a specific element, and returns its position.

Syntax

Example 1

Example 2

LEAVE A REPLY

Please enter your comment!
Please enter your name here