function init() {
    promptMessages()
    .then((answers) => {
        const readMePageContent = generateMarkdown(answers);

        fs.writeFile('README.md', readMePageContent, err => {
            err ? console.log(err) : console.log("README.md successfully created")
        })
        
    })
}
// TODO: Create a function to initialize app
Create a function to initialize app
Create a function to initialize app
function init() {
    promptMessages()
    .then((answers) => {
        const readMePageContent = generateMarkdown(answers);
        fs.writeFile('README.md', readMePageContent, err => {
            err ? console.log(err) : console.log("README.md successfully created")
        })
    })
}
function init ( ) { promptMessages ( ) . then ( ( answers ) => { const readMePageContent = generateMarkdown ( answers ) ; fs . writeFile ( 'README.md' , readMePageContent , err => { err ? console . log ( err ) : console . log ( "README.md successfully created" ) } ) } ) }
TODO: Create a function to initialize app
TODO : Create a function to initialize app