- Look at the following code. What does it do? What happens if you click on the li elements?
- Establish what happens when you click on the li elements. Can you guess? Ask the interviewee to explain why this happens.
- Ask how the code can be fixed so that clicking on each element outputs an alert corresponding to its order in the list (the desired behavior)