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(data) {
  fs.writeFile("README.md", generateMarkdown(data), (err) =>
    err ? console.error(err) : console.log("data written to file")
  );
}
function writeToFile ( data ) { fs . writeFile ( "README.md" , generateMarkdown ( data ) , ( err ) => err ? console . error ( err ) : console . log ( "data written to file" ) ) ; }
TODO: Create a function to write README file
TODO : Create a function to write README file