function renderInternQuestions(){
    inquirer
    .prompt(questions.internQuestions)
    .then(internAns => {
        const {name, id, email, school} = internAns
        const intern = new Intern(name, id, email, school)
        const internHTMLcontent = generateHTML.generateInternContent(intern)
        appendInternContent(internHTMLcontent)
        if (internAns.option === "Add an Engineer"){
            renderEngineerQuestions()
        }
        if (internAns.option === "Add an Intern"){
            renderInternQuestions()
        }
        if (internAns.option === "Finish Building Team"){
            endHTMLcontent()
        }
    })

    // .then( () => {
    //     if (internAns.option === "Finish Building Team"){
    //         endHTMLcontent()
    //     }
    // })   

}
// Prompt Intern questions and generate HTML card for Intern
Prompt Intern questions and generate HTML card for Intern
Prompt Intern questions and generate HTML card for Intern
function renderInternQuestions(){
    inquirer
    .prompt(questions.internQuestions)
    .then(internAns => {
        const {name, id, email, school} = internAns
        const intern = new Intern(name, id, email, school)
        const internHTMLcontent = generateHTML.generateInternContent(intern)
        appendInternContent(internHTMLcontent)
        if (internAns.option === "Add an Engineer"){
            renderEngineerQuestions()
        }
        if (internAns.option === "Add an Intern"){
            renderInternQuestions()
        }
        if (internAns.option === "Finish Building Team"){
            endHTMLcontent()
        }
    })
}
function renderInternQuestions ( ) { inquirer . prompt ( questions . internQuestions ) . then ( internAns => { const { name , id , email , school } = internAns const intern = new Intern ( name , id , email , school ) const internHTMLcontent = generateHTML . generateInternContent ( intern ) appendInternContent ( internHTMLcontent ) if ( internAns . option === "Add an Engineer" ) { renderEngineerQuestions ( ) } if ( internAns . option === "Add an Intern" ) { renderInternQuestions ( ) } if ( internAns . option === "Finish Building Team" ) { endHTMLcontent ( ) } } ) }
Prompt Intern questions and generate HTML card for Intern
Prompt Intern questions and generate HTML card for Intern
// .then( () => { //     if (internAns.option === "Finish Building Team"){ //         endHTMLcontent() //     } // })   