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

  • (A) postMessage()
  • (B) sendMessage()
  • (C) Message()
  • (D) post()
πŸ’¬ Discuss
βœ… Correct Answer: (A) postMessage()
Explanation: 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:
Explanation by: Mr. Dubey
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:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
336
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate