function renderEngineerQuestions(){
    inquirer
    .prompt(questions.engineerQuestions)
    .then(engineerAns => {
        const {name, id, email, gitHubUserName} = engineerAns
        const engineer = new Engineer(name, id, email, gitHubUserName)
        const engineerHTMLcontent = generateHTML.generateEngineerContent(engineer)
        appendEngineerContent(engineerHTMLcontent)
        if (engineerAns.option === "Add an Engineer"){
            renderEngineerQuestions()
        }
        if (engineerAns.option === "Add an Intern"){
            renderInternQuestions()
        }
        if (engineerAns.option === "Finish Building Team"){
            endHTMLcontent()
        }
      
    })
    
    // .then( () => {
    //     if (engineerAns.option === "Finish Building Team"){
    //         endHTMLcontent()
    //     }
    // })

}
// Prompt Engineer questions and generate HTML card for engineer
Prompt Engineer questions and generate HTML card for engineer
Prompt Engineer questions and generate HTML card for engineer
function renderEngineerQuestions(){
    inquirer
    .prompt(questions.engineerQuestions)
    .then(engineerAns => {
        const {name, id, email, gitHubUserName} = engineerAns
        const engineer = new Engineer(name, id, email, gitHubUserName)
        const engineerHTMLcontent = generateHTML.generateEngineerContent(engineer)
        appendEngineerContent(engineerHTMLcontent)
        if (engineerAns.option === "Add an Engineer"){
            renderEngineerQuestions()
        }
        if (engineerAns.option === "Add an Intern"){
            renderInternQuestions()
        }
        if (engineerAns.option === "Finish Building Team"){
            endHTMLcontent()
        }
    })
}
function renderEngineerQuestions ( ) { inquirer . prompt ( questions . engineerQuestions ) . then ( engineerAns => { const { name , id , email , gitHubUserName } = engineerAns const engineer = new Engineer ( name , id , email , gitHubUserName ) const engineerHTMLcontent = generateHTML . generateEngineerContent ( engineer ) appendEngineerContent ( engineerHTMLcontent ) if ( engineerAns . option === "Add an Engineer" ) { renderEngineerQuestions ( ) } if ( engineerAns . option === "Add an Intern" ) { renderInternQuestions ( ) } if ( engineerAns . option === "Finish Building Team" ) { endHTMLcontent ( ) } } ) }
Prompt Engineer questions and generate HTML card for engineer
Prompt Engineer questions and generate HTML card for engineer
// .then( () => { //     if (engineerAns.option === "Finish Building Team"){ //         endHTMLcontent() //     } // })