app.js
//* Function to choose the type of team member (engineer or intern) and prompt questions to build additional class constructors.
Function to choose the type of team member (engineer or intern) and prompt questions to build additional class constructors.
Function to choose the type of team member ( engineer or intern ) and prompt questions to build additional class constructors .
function teamMemberLoop() {
	inquirer.prompt(teamMemberRolePick).then((teamrole) => {
		if (teamrole.teamMemberRoleType === 'Engineer') {
			log.blue('Please Submit Engineer Profile Information');
			inquirer.prompt(engineerQuestions).then((engineerBuild) => {
				let engineer = new Engineer(engineerBuild.enginnerName, engineerBuild.engineerId, engineerBuild.engineerEmail, engineerBuild.engineerGithub);
				teamMembersArray.push(engineer);
				teamSizeInfo();
			});
		} else if (teamrole.teamMemberRoleType === 'Intern') {
			log.magenta('Please Submit Intern Profile Information');
			inquirer.prompt(internQuestions).then((internBuild) => {
				let intern = new Intern(internBuild.internName, internBuild.internId, internBuild.internEmail, internBuild.internSchool);
				teamMembersArray.push(intern);
				teamSizeInfo();
			});
		}
	});
}
function teamMemberLoop ( ) { inquirer . prompt ( teamMemberRolePick ) . then ( ( teamrole ) => { if ( teamrole . teamMemberRoleType === 'Engineer' ) { log . blue ( 'Please Submit Engineer Profile Information' ) ; inquirer . prompt ( engineerQuestions ) . then ( ( engineerBuild ) => { let engineer = new Engineer ( engineerBuild . enginnerName , engineerBuild . engineerId , engineerBuild . engineerEmail , engineerBuild . engineerGithub ) ; teamMembersArray . push ( engineer ) ; teamSizeInfo ( ) ; } ) ; } else if ( teamrole . teamMemberRoleType === 'Intern' ) { log . magenta ( 'Please Submit Intern Profile Information' ) ; inquirer . prompt ( internQuestions ) . then ( ( internBuild ) => { let intern = new Intern ( internBuild . internName , internBuild . internId , internBuild . internEmail , internBuild . internSchool ) ; teamMembersArray . push ( intern ) ; teamSizeInfo ( ) ; } ) ; } } ) ; }
Function to choose the type of team member (engineer or intern) and prompt questions to build additional class constructors.
Function to choose the type of team member ( engineer or intern ) and prompt questions to build additional class constructors .