Text in the basic format required to create the README was added to the generateMarkdown function. A template literal is used to allow the destructured parameters from the questions prompt to be inserted into the text. The text is returned from the function, which has been added to the init function in the main index.js file. It is passed as a parameter to the writeToFile function using the fs module.
Text in the basic format required to create the README was added to the generateMarkdown function. A template literal is used to allow the destructured parameters from the questions prompt to be inserted into the text. The text is returned from the function, which has been added to the init function in the main index.js file. It is passed as a parameter to the writeToFile function using the fs module.