Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript String Methods
The lastIndexOf() method returns the position of the last occurrence of a specified text: