Q. Which method reads a file asynchronously?

A
fs.readFile()
B
fs.readFileSync()
C
fs.writeFile()
D
fs.appendFile()
Solution:

fs.readFile() reads a file asynchronously in Node.js.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!