Question: Answer Question below: Hello function writeId(e) { console.log(e.currentTarget.id); } document.querySelector('main').addEventListener('click', writeId); document.querySelector('header').addEventListener('click', writeId); document.querySelector('p').addEventListener('click', writeId); 1) Pay attention to the elements that have event listeners.

Answer Question below:

     

Hello

1) Pay attention to the elements that have event listeners. When someone clicks on the word "Hello" in the browser, what words will they see in their console?

main, section, header, p

para-what, mind-the-shelf, main-street

para-what, mind-the-shelf, section-eight, main-street

main-street, mind-the-shelf, para-what

p, header, section, main

main-street, section-eight, mind-the-shelf, para-what

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!