index.js
// inquirer grabs all the info to later build an Engineer object;
inquirer grabs all the info to later build an Engineer object.
inquirer grabs all the info to later build an Engineer object .
function addEngineer(){
    return inquirer.prompt([
        {
            type: 'input',
            message: 'What is the "Engineer" name?',
            name: 'engineerName',
        },
        {
            type: 'input',
            message: 'Enter "Engineer" ID. ',
            name: 'engineerID',
        },
        {
            type: 'input',
            message: 'Enter "Engineer" email.',
            name: 'engineerEmail',
        },
        {
            type: 'input',
            message: 'Enter "Engineer" gitHub username.',
            name: 'engineerGitHub',
        },
        ])
        .then((answers) => {
            const engineer = new Engineer(answers.engineerName, answers.engineerID, answers.engineerEmail, answers.engineerGitHub);
            employeeList.push(engineer);
            nextStep();
        })
}
function addEngineer ( ) { return inquirer . prompt ( [ { type : 'input' , message : 'What is the "Engineer" name?' , name : 'engineerName' , } , { type : 'input' , message : 'Enter "Engineer" ID. ' , name : 'engineerID' , } , { type : 'input' , message : 'Enter "Engineer" email.' , name : 'engineerEmail' , } , { type : 'input' , message : 'Enter "Engineer" gitHub username.' , name : 'engineerGitHub' , } , ] ) . then ( ( answers ) => { const engineer = new Engineer ( answers . engineerName , answers . engineerID , answers . engineerEmail , answers . engineerGitHub ) ; employeeList . push ( engineer ) ; nextStep ( ) ; } ) }
inquirer grabs all the info to later build an Engineer object;
inquirer grabs all the info to later build an Engineer object ;
// pushing new Engineer object to the employeeList array;