Search
Use the lastIndexOf() method to find the last index of "Sam" in the names array.
lastIndexOf()
names
For example: