~ no output ~ on Javascript Hackerrank 1

~ no output ~ on Javascript Hackerrank

// It will work on Javscript(nodejs), not sure about others
fs.createWriteStream(process.env.OUTPUT_PATH).write("Your Output");

Here is what the above code is Doing:
1. It is creating a write stream to the file specified in the OUTPUT_PATH environment variable.
2. It is writing the string “Your Output” to the file.

Similar Posts