Develop/app.js
// and to create objects for each team member (using the correct classes as blueprints!)
and to create objects for each team member (using the correct classes as blueprints!)
and to create objects for each team member ( using the correct classes as blueprints! )
function employeeType() {
    inquirer.prompt([
        {
            type: "list",
            name: "employeeType",
            message: "Which member would you like to add?",
            choices: [
                "Engineer",
                "Intern",
                "Manager",
                "I'm done adding employees"
            ]
        }
    ]).then(answers => {
        if (answers.employeeType === "Intern") {
            generateIntern();
        }
        else if (answers.employeeType === "Manager") {
            generateManager();
        }
        else if (answers.employeeType === "Engineer") {
            generateEngineer();
        }
        else {
            let html = render(employeeArray);
            fs.writeFile(outputPath, html, (err) => {
                if (err) throw err;
                console.log('The file has been saved!');
            });
        }
    });
}
function employeeType ( ) { inquirer . prompt ( [ { type : "list" , name : "employeeType" , message : "Which member would you like to add?" , choices : [ "Engineer" , "Intern" , "Manager" , "I'm done adding employees" ] } ] ) . then ( answers => { if ( answers . employeeType === "Intern" ) { generateIntern ( ) ; } else if ( answers . employeeType === "Manager" ) { generateManager ( ) ; } else if ( answers . employeeType === "Engineer" ) { generateEngineer ( ) ; } else { let html = render ( employeeArray ) ; fs . writeFile ( outputPath , html , ( err ) => { if ( err ) throw err ; console . log ( 'The file has been saved!' ) ; } ) ; } } ) ; }
and to create objects for each team member (using the correct classes as blueprints!)
and to create objects for each team member ( using the correct classes as blueprints! )