Examveda
Examveda

How can you send data using a Worker object?

A. postMessage()

B. sendMessage()

C. Message()

D. post()

Answer: Option A

Solution(By Examveda Team)

Once you have a Worker object, you can send data to it with postMessage(). The value you pass to postMessage() will be cloned, and the resulting copy will be delivered to the worker via a message event:

This Question Belongs to Javascript >> Caching And Debugging

Join The Discussion

Related Questions on Caching and Debugging