index.js
//Asks the question to add a department, and adds it to the database
Asks the question to add a department, and adds it to the database
Asks the question to add a department and adds it to the database
function handleDepartmentAdd() {
    inquirer.prompt(
        {
            type: "input",
            message: enquiries.departmentAdd.question,
            name: "name"
        }
    )
        .then(function (response) {
            database.addDepartment(response.name);
            console.log('\n')
            console.log('\n')
            console.log('Department added')
            startQuestioning();
        })
}
function handleDepartmentAdd ( ) { inquirer . prompt ( { type : "input" , message : enquiries . departmentAdd . question , name : "name" } ) . then ( function ( response ) { database . addDepartment ( response . name ) ; console . log ( '\n' ) console . log ( '\n' ) console . log ( 'Department added' ) startQuestioning ( ) ; } ) }
Asks the question to add a department, and adds it to the database
Asks the question to add a department and adds it to the database