Put in order · JavaScript and TypeScript course · Module 10: TypeScript in Practice
Web Worker Lifecycle
Arrange the Web Worker lifecycle stages in the correct order:
Items to put in order
- Send data via postMessage()
- Processing data in the worker thread
- Receive the result in the onmessage handler
- Create the worker via new Worker()
You can check the correct answer by solving this task in the CodeWorlds game.