JavaStringindexOf

Returns the index of the first occurrence of the specified value.

Syntax

str.indexOf(str, fromIndex?)