Skip to main content

JavaScript Question 31

Question 31 of 0JavaScript

What is the event.target when clicking the button?

Login Required

Please login to select answers and solve this question. You can view the question without logging in.

Code:
<div onclick="console.log('first div')">
  <div onclick="console.log('second div')">
    <button onclick="console.log('button')">
      Click!
    </button>
  </div>
</div>

Select the correct option: