code/index.js
// TODO: Create a function to write README file
Create a function to write README file
Create a function to write README file
function writeToFile(fileName, data) {
    try {
        fs.writeFileSync(fileName, data);
        console.log("Successfully wrote to README.md");    
    } catch (error) {
        console.log(error)
    }
}
function writeToFile ( fileName , data ) { try { fs . writeFileSync ( fileName , data ) ; console . log ( "Successfully wrote to README.md" ) ; } catch ( error ) { console . log ( error ) } }
TODO: Create a function to write README file
TODO : Create a function to write README file