create js file with help of nodejs code example
Example 1: fs create or edit file
//Edit file or creates if doesnt exist
const fs = require('fs');
fs.appendFile(‘<fileName>’,<content>,callbackFunction)
Example 2: node command
> node
Welcome to Node.js <version>.
>'type in javascript'