JavaScript String Methods

The lastIndexOf() method returns the position of the last occurrence of a specified text: