function internQs(baseAnswers) {
    inquirer.prompt([{
            type: "input",
            message: "Great!  An intern.  Where did they go to school?",
            name: "answerSchool",
        },
        {
            type: "confirm",
            message: "Okay, looks like we're all set for this one.  Would you like to add another?",
            name: "answerAddAnother",
        },
    ]).then(function (answers) {
        const newIntern = new Intern(baseAnswers.answerName, baseAnswers.answerID, baseAnswers.answerEmail, answers.answerSchool);
        teamArr.push(newIntern);
        if (answers.answerAddAnother === true) {

            // This loops back to the original function to add another employee if the user so chooses
            employeeQs()
        } else {

            // This begins the process of rendering the content if there is nobody else to add
            buildTeam();
            console.log("rendered!")
        }
    })
}
// Getting the unique information for Interns
Getting the unique information for Interns
Getting the unique information for Interns
function internQs(baseAnswers) {
    inquirer.prompt([{
            type: "input",
            message: "Great!  An intern.  Where did they go to school?",
            name: "answerSchool",
        },
        {
            type: "confirm",
            message: "Okay, looks like we're all set for this one.  Would you like to add another?",
            name: "answerAddAnother",
        },
    ]).then(function (answers) {
        const newIntern = new Intern(baseAnswers.answerName, baseAnswers.answerID, baseAnswers.answerEmail, answers.answerSchool);
        teamArr.push(newIntern);
        if (answers.answerAddAnother === true) {
            employeeQs()
        } else {
            buildTeam();
            console.log("rendered!")
        }
    })
}
function internQs ( baseAnswers ) { inquirer . prompt ( [ { type : "input" , message : "Great!  An intern.  Where did they go to school?" , name : "answerSchool" , } , { type : "confirm" , message : "Okay, looks like we're all set for this one.  Would you like to add another?" , name : "answerAddAnother" , } , ] ) . then ( function ( answers ) { const newIntern = new Intern ( baseAnswers . answerName , baseAnswers . answerID , baseAnswers . answerEmail , answers . answerSchool ) ; teamArr . push ( newIntern ) ; if ( answers . answerAddAnother === true ) { employeeQs ( ) } else { buildTeam ( ) ; console . log ( "rendered!" ) } } ) }
Getting the unique information for Interns
Getting the unique information for Interns
// This loops back to the original function to add another employee if the user so chooses // This begins the process of rendering the content if there is nobody else to add