Description :

This method returns the first occurence of the searched string index from the given string but the search begin from the last character of the string

Syntax :

string.lastIndexOf(SearchString [, StartIndex])

Input Parameters :

The string to be searched in the given string. It can be a character, number or string

StartIndex (Optional)
The index where to start the search in the given string

Return Values :

Returns the searched string position if it is found within a string otherwise returns -1

Test this method :

More Parameters

Test Result :   
Your Code :