Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which of these blocks the Node.js event loop?

  1. A fs.promises.readFile()
  2. B fs.readFileSync()
  3. C http.get()
  4. D setImmediate()
Answer

fs.readFileSync()

Synchronous file system calls halt the single thread, delaying every other request. They are acceptable only at startup.

All NodeJS MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as