Question · JavaScript and TypeScript course · Module 10: TypeScript in Practice
Web Worker API
Which method do we use to send data to a Web Worker?
Answer options
- worker.send(data)
- worker.postMessage(data)
- worker.dispatch(data)
- worker.emit(data)
You can check the correct answer by solving this task in the CodeWorlds game.