Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSWorker threads basicsSingle-choice MCQ

By default, where does a worker thread's `console.log` output go, and how can you redirect it?

const { Worker } = require('node:worker_threads'); const w = new Worker('./w.js');