Node.js - Worker Threads
You wrote this code to create a worker thread but it throws an error:
const { Worker } = require('worker_threads');
const worker = new Worker('console.log("Hello")'); What is the problem?