$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #174

Fill the blank

// position of the LAST match
const i = list.____('a');

Answer: lastIndexOf (also accepted: lastIndexOf, lastIndexOf())

lastIndexOf() searches from the end backwards.
Play Problem Solving ▸