How do you pass data to an event handler while dispatching an event?

  1. Use the property called “data” in event Object

  2. Use the property called “payload” in event Object

  3. Create a Custom Event and have your own public variable to hold the data to be passed to the handler

  4. No way to do that.


Correct Option: C

Find more quizzes: