JavaScript · Junior · Question 71 of 75

In a click handler attached to <ul>, how do event.target and event.currentTarget differ?

Explanation

This difference is the basis of event delegation: one handler on the parent inspects event.target (often with closest()).

Further reading

Problem with a question

JavaScript · Junior · question 71

Test yourself

Take the JavaScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz