index.js
// Create a function to write README file
Create a function to write README file
Create a function to write README file
function writeToFile(data) {
    fs.writeFile("README.md", data, err => {
        if (err) {
            return console.log(err);
        }
        console.log("README.md file has been successfully created!")
    });
}
function writeToFile ( data ) { fs . writeFile ( "README.md" , data , err => { if ( err ) { return console . log ( err ) ; } console . log ( "README.md file has been successfully created!" ) } ) ; }
Create a function to write README file
Create a function to write README file