Thread Pool · Level 1 of 7

Files go to a helper

An fs.readFile call and a log after it. Watch where the reading happens.

const fs = require('node:fs');fs.readFile(__filename, () => console.log('file read'));console.log('sync done');

1. Predict the output

Tap the lines in the order you think they print.

  1. 1…
  2. 2…