so i have this piece of code that i want to take the input in the main thread and then feed it to the worker threads so i dont have to put the question in the worker thread so the question repeat
const { Worker, isMainThread } = require('worker_threads');
if (isMainThread) {
let x = prompt("question")
for (let i = 0; i < 2; i++) {
new Worker(__filename,);
}
// This re-loads the current file inside a Worker instance.
} else {
console.log(x)
console.log('Inside Worker!');
console.log(isMainThread); // Prints 'false'.
}