function engineerAdd() {
    inquirer.prompt([
        {
            type: "input",
            name: "engineersName",
            message: "Enter your engineer's name:"
        },
        {
            type: "input",
            name: "engineersID",
            message: "Enter your engineer's ID:"
        },
        {
            type: "input",
            name: "engineersEmail",
            message: "Enter your engineer's email:"
        },
        {
            type: "input",
            name: "engineersGithub",
            message: "Enter your engineer's Github account:"
        }
        // creates an 'engineer' class using the answers from Inquirer. Pushes the class into an array of employees.
    ]).then(function(data) {
        const engineerClass = new Engineer(data.engineersName, data.engineersID, data.engineersEmail, "Engineer", data.engineersGithub)
        teamMembers.push(engineerClass)
        newTeamMember()
    })
}
// The above function of creating an engineer profile, with questions whose answer will fit into its class constructor
The above function of creating an engineer profile, with questions whose answer will fit into its class constructor
The above function of creating an engineer profile with questions whose answer will fit into its class constructor
function engineerAdd() {
    inquirer.prompt([
        {
            type: "input",
            name: "engineersName",
            message: "Enter your engineer's name:"
        },
        {
            type: "input",
            name: "engineersID",
            message: "Enter your engineer's ID:"
        },
        {
            type: "input",
            name: "engineersEmail",
            message: "Enter your engineer's email:"
        },
        {
            type: "input",
            name: "engineersGithub",
            message: "Enter your engineer's Github account:"
        }
    ]).then(function(data) {
        const engineerClass = new Engineer(data.engineersName, data.engineersID, data.engineersEmail, "Engineer", data.engineersGithub)
        teamMembers.push(engineerClass)
        newTeamMember()
    })
}
function engineerAdd ( ) { inquirer . prompt ( [ { type : "input" , name : "engineersName" , message : "Enter your engineer's name:" } , { type : "input" , name : "engineersID" , message : "Enter your engineer's ID:" } , { type : "input" , name : "engineersEmail" , message : "Enter your engineer's email:" } , { type : "input" , name : "engineersGithub" , message : "Enter your engineer's Github account:" } ] ) . then ( function ( data ) { const engineerClass = new Engineer ( data . engineersName , data . engineersID , data . engineersEmail , "Engineer" , data . engineersGithub ) teamMembers . push ( engineerClass ) newTeamMember ( ) } ) }
The above function of creating an engineer profile, with questions whose answer will fit into its class constructor
The above function of creating an engineer profile with questions whose answer will fit into its class constructor
// creates an 'engineer' class using the answers from Inquirer. Pushes the class into an array of employees.