| 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) | | |