1.

Which method of fs module is used to write a file?

Answer»

Which method of fs MODULE is used to write a file?
Choose answer from below list
(1)fs.write(PATH, flags[, MODE], callback)
(2)fs.writeFile(path, flags[, mode], callback)
(3)None of the options.
(4)fs.writePath(path, flags[, mode], callback)

Answer:-(2)fs.writeFile(path, flags[, mode], callback)



Discussion

No Comment Found