Javascript String LastIndexOf() Function

The lastIndexOf() function of string object returns the index of the last occurrence of the specified substring, or -1 if not found. The indexOf() function is case sensitive. Use it for example to search substring (desending order) within string object.

Syntax

Javascript String LastIndexOf() Function Example