index.js
// Create a function to initialize app
Create a function to initialize app
Create a function to initialize app
async function init() {
  try {
    let responses = await inquirer.prompt(questions);
    console.log(responses);
    const markdown = generateMarkdown(responses);
    writeToFile('README.MD', markdown);
  } catch (err) {
    console.error(`Inquirer Failed with -- ${err}`)
  }
}
async function init ( ) { try { let responses = await inquirer . prompt ( questions ) ; console . log ( responses ) ; const markdown = generateMarkdown ( responses ) ; writeToFile ( 'README.MD' , markdown ) ; } catch ( err ) { console . error ( ` ${ err } ` ) } }
Create a function to initialize app
Create a function to initialize app