JavaScript String Methods

The indexOf() method returns the position of the first occurrence of a specified text: