Vidyalelo
JavaScript · Q48

Parsing, Benchmarking And Logging

Programming · JavaScript · question 48

Q48

How can you dispatch a synthetic event object?

A.
dispatchEvent()
Answer
B.
dispatch()
C.
dispatch(Event)
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
When you have created and initialized an synthetic event object, you can dispatch it using the dispatchEvent() method of EventTarget.