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