A

Admin • 833K Points
Coach

Q. Which method is used to add an event listener in JavaScript?

  • (A) addEventListener
  • (B) onEvent
  • (C) listenTo
  • (D) eventAttach
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

addEventListener attaches an event handler to an element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.