Web Workers
Instructions: Test interaction with a background script (Web Worker).
- Click the "Start Calculation" button. This sends a message to a web worker.
- The worker will perform a "heavy" calculation without freezing the main page.
- Wait for the worker to post a message back with the result.
Validation: Your script should verify that the output box displays the message "Calculation complete! Result: 5000000000".
Output
Waiting for worker...