function managerAdd() {
    inquirer.prompt([
        {
            type: "input",
            name: "managersName",
            message: "Enter your manager's name:"
        },
        {
            type: "input",
            name: "managersID",
            message: "Enter your manager's ID:"
        },
        {
            type: "input",
            name: "managersEmail",
            message: "Enter your manager's email:"
        },
        {
            type: "input",
            name: "managersOfficeNumber",
            message: "Enter your manager's office phone number:"
        }
        // creates a 'manager' class using the answers from Inquirer. Pushes the class into an array of employees.
    ]).then(function(data) {
        const managerClass = new Manager(data.managersName, data.managersID, data.managersEmail, "Manager", data.managersOfficeNumber)
        teamMembers.push(managerClass)
        newTeamMember()
    })
}
// The above function of creating a manager profile, with questions whose answer will fit into its class constructor 
The above function of creating a manager profile, with questions whose answer will fit into its class constructor
The above function of creating a manager profile with questions whose answer will fit into its class constructor
function managerAdd() {
    inquirer.prompt([
        {
            type: "input",
            name: "managersName",
            message: "Enter your manager's name:"
        },
        {
            type: "input",
            name: "managersID",
            message: "Enter your manager's ID:"
        },
        {
            type: "input",
            name: "managersEmail",
            message: "Enter your manager's email:"
        },
        {
            type: "input",
            name: "managersOfficeNumber",
            message: "Enter your manager's office phone number:"
        }
    ]).then(function(data) {
        const managerClass = new Manager(data.managersName, data.managersID, data.managersEmail, "Manager", data.managersOfficeNumber)
        teamMembers.push(managerClass)
        newTeamMember()
    })
}
function managerAdd ( ) { inquirer . prompt ( [ { type : "input" , name : "managersName" , message : "Enter your manager's name:" } , { type : "input" , name : "managersID" , message : "Enter your manager's ID:" } , { type : "input" , name : "managersEmail" , message : "Enter your manager's email:" } , { type : "input" , name : "managersOfficeNumber" , message : "Enter your manager's office phone number:" } ] ) . then ( function ( data ) { const managerClass = new Manager ( data . managersName , data . managersID , data . managersEmail , "Manager" , data . managersOfficeNumber ) teamMembers . push ( managerClass ) newTeamMember ( ) } ) }
The above function of creating a manager profile, with questions whose answer will fit into its class constructor
The above function of creating a manager profile with questions whose answer will fit into its class constructor
// creates a 'manager' class using the answers from Inquirer. Pushes the class into an array of employees.