A

Admin • 833K Points
Coach

Q. How can you send data using a Worker object?

  • (A) postMessage()
  • (B) sendMessage()
  • (C) Message()
  • (D) post()
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

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:

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.