Q. What is the purpose of addEventListener?

A
Adds styles
B
Attaches event handlers
C
Creates arrays
D
Defines functions
Solution:

addEventListener attaches an event handler to an element.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!