function init() {
  inquirer
    .prompt(questions)
    .then((answers) => {
      return writeToFile(answers);
    })
    .then((writeToFileResponse) => {
      console.log(writeToFileResponse.message);
    })
    .catch((err) => {
      console.log(err);
    });
}
// TODO: Create a function to initialize app
Create a function to initialize app
Create a function to initialize app
function init() {
  inquirer
    .prompt(questions)
    .then((answers) => {
      return writeToFile(answers);
    })
    .then((writeToFileResponse) => {
      console.log(writeToFileResponse.message);
    })
    .catch((err) => {
      console.log(err);
    });
}
function init ( ) { inquirer . prompt ( questions ) . then ( ( answers ) => { return writeToFile ( answers ) ; } ) . then ( ( writeToFileResponse ) => { console . log ( writeToFileResponse . message ) ; } ) . catch ( ( err ) => { console . log ( err ) ; } ) ; }
TODO: Create a function to initialize app
TODO : Create a function to initialize app