Which property is used to manage multiple event handlers?
A
onmessage
B
onerror
C
both onmessage and onerror
D
postmessage
Correct Answer: both onmessage and onerror
message event is fired when the worker’s parent receives a message from its worker which is also available via the onmessage property. You can use onmessage and onerror properties if you want to manage multiple event handlers.