Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     postMessage()

    B.

     sendMessage()

    C.

     Message()

    D.

     post()

    View Answer

    Workspace

    Answer : Option A

    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:


Be The First To Comment