All challenges
Code AnalysisIntermediate 45s

event target

What is event.target?
Starter code
const div = document.querySelector('div');
div.addEventListener('click', function(e) {
  console.log(e.target); // the clicked child element
});

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle