What is displayed in the alert from line 11?

You are troubleshooting a web page that includes the following code. (Line numbers are included for reference only.)

What is displayed in the alert from line 11?
A . Div
B . Function
C . Button
D . Document

Answer: C

Explanation:

* The event handler here normalizes event object (passed as a first argument) and invokes handleCellClick in a proper context (i.e. referring to an element that was attached event listener to). The element is the button elButton.

* addEventListener

Syntax: element.addEventListener(event, function, useCapture)

Reference: HTML DOM addEventListener() Method

Latest 70-480 Dumps Valid Version with 288 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments