The strLastIndexOf() method, given two arguments: the string and a substring to search for, searches
the entire calling string, and returns the index of the last occurrence of the specified substring.
Given a third argument: a number, the method returns the last occurrence of the specified substring
at an index less than or equal to the specified number.
The
strLastIndexOf()
method, given two arguments: the string and a substring to search for, searches the entire calling string, and returns the index of the last occurrence of the specified substring. Given a third argument: a number, the method returns the last occurrence of the specified substring at an index less than or equal to the specified number.Example