Question · JavaScript and React course · Module 10: React Ecosystem and Future
Web Workers - Communication
What mechanism is used for communication between the main thread and a Web Worker?
Answer options
- Shared global variables
- Message system: postMessage() and onmessage
- Direct DOM access from the Worker
- Redux store shared between threads
You can check the correct answer by solving this task in the CodeWorlds game.