Use the saved index and the current index. Goal: Return the earlier saved position together with the position you are visiting now.
Follow how a lookup turns into returned indexes.
The map stores an earlier index; the current loop index supplies the second answer.
Drag tokens into the blanks
1// Goal: Return the earlier saved position together with the position you are visiting now.2function starterExample() {3const savedIndex = 0;4const currentIndex = 2;5 return [savedIndex, ___];6}