Angular - Performance Optimization
Given this Angular Web Worker code snippet, what will be logged in the console?
Assuming the worker script doubles the input number and sends it back.
const worker = new Worker(new URL('./compute.worker', import.meta.url));
worker.onmessage = ({ data }) => console.log('Result:', data);
worker.postMessage(10);Assuming the worker script doubles the input number and sends it back.
