Which of these blocks the Node.js event loop?
- A fs.promises.readFile()
- B fs.readFileSync()
- C http.get()
- D setImmediate()
Answer
fs.readFileSync()
Synchronous file system calls halt the single thread, delaying every other request. They are acceptable only at startup.





