Vidyalelo
JavaScript · Q76

Invocation And Performance Navigation

Programming · JavaScript · question 76

Q76

Which is the method used to add an event listener?

A.
addEventListener()
Answer
B.
addListener()
C.
addEvent(Listener)
D.
addListener(Event)

Answer: Option A

Solution

Answer: Option A
Solution:
The addEventListener() method is used to add an event listener to the script.