Node.js - Worker Threads
What will be logged by the worker thread in this code?
And the main thread creates the worker as:
import { workerData } from 'worker_threads';
console.log(workerData.message);
And the main thread creates the worker as:
new Worker('./worker.js', { workerData: { message: 'Hello' } });