index.js
// inquirer grabs all the info to later build an Intern object;
inquirer grabs all the info to later build an Intern object.
inquirer grabs all the info to later build an Intern object .
function addInter(){
    return inquirer.prompt([
        {
            type: 'input',
            message: 'What is the "Intern" name?',
            name: 'internName',
        },
        {
            type: 'input',
            message: 'Enter "Intern" ID. ',
            name: 'internID',
        },
        {
            type: 'input',
            message: 'Enter "Intern" email.',
            name: 'internEmail',
        },
        {
            type: 'input',
            message: 'Enter "Intern" school.',
            name: 'internSchool',
        },
        ])
        .then((answers) => {
            const intern = new Intern(answers.internName, answers.internID, answers.internEmail, answers.internSchool);
            employeeList.push(intern);
            nextStep();
        })
}
function addInter ( ) { return inquirer . prompt ( [ { type : 'input' , message : 'What is the "Intern" name?' , name : 'internName' , } , { type : 'input' , message : 'Enter "Intern" ID. ' , name : 'internID' , } , { type : 'input' , message : 'Enter "Intern" email.' , name : 'internEmail' , } , { type : 'input' , message : 'Enter "Intern" school.' , name : 'internSchool' , } , ] ) . then ( ( answers ) => { const intern = new Intern ( answers . internName , answers . internID , answers . internEmail , answers . internSchool ) ; employeeList . push ( intern ) ; nextStep ( ) ; } ) }
inquirer grabs all the info to later build an Intern object;
inquirer grabs all the info to later build an Intern object ;
// pushing new Intern object to the employeeList array;