Q. Which method creates a directory?

A
fs.mkdir()
B
fs.createDir()
C
fs.makeDir()
D
fs.newDir()
Solution:

fs.mkdir() creates a new directory 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!