function engineerQs(baseAnswers) {
    inquirer.prompt([{
            type: "input",
            message: "An Engineer, got it.  What is their GitHub username?",
            name: "answerGithub",
        },
        {
            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 newEngineer = new Engineer(baseAnswers.answerName, baseAnswers.answerID, baseAnswers.answerEmail, answers.answerGithub);
        teamArr.push(newEngineer);
        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 Engineers
Getting the unique information for Engineers
Getting the unique information for Engineers
function engineerQs(baseAnswers) {
    inquirer.prompt([{
            type: "input",
            message: "An Engineer, got it.  What is their GitHub username?",
            name: "answerGithub",
        },
        {
            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 newEngineer = new Engineer(baseAnswers.answerName, baseAnswers.answerID, baseAnswers.answerEmail, answers.answerGithub);
        teamArr.push(newEngineer);
        if (answers.answerAddAnother === true) {
            employeeQs()
        } else {
            buildTeam();
            console.log("rendered!")
        }
    })
}
function engineerQs ( baseAnswers ) { inquirer . prompt ( [ { type : "input" , message : "An Engineer, got it.  What is their GitHub username?" , name : "answerGithub" , } , { 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 newEngineer = new Engineer ( baseAnswers . answerName , baseAnswers . answerID , baseAnswers . answerEmail , answers . answerGithub ) ; teamArr . push ( newEngineer ) ; if ( answers . answerAddAnother === true ) { employeeQs ( ) } else { buildTeam ( ) ; console . log ( "rendered!" ) } } ) }
Getting the unique information for Engineers
Getting the unique information for Engineers
// 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