JavaScript String lastIndexOf

JavaScript String lastIndexOf


JavaScript String lastIndexOf() method
In this Tutorial, we will learn about JavaScript String lastIndexOf() method with the help of following below:
The lastIndexOf() method will return the position of the first occurrence of the specified string.
Syntax
var lastIndex = str.lastindexOf(“string”);
Example
Output