index.js
// begins the user-facing program, asking them where they would like to go.
begins the user-facing program, asking them where they would like to go.
begins the user - facing program asking them where they would like to go .
function startQuestioning() {
    inquirer.prompt(
        {
            type: "list",
            message: enquiries.firstquestion.question,
            choices: [enquiries.firstquestion.a, enquiries.firstquestion.b, enquiries.firstquestion.c, enquiries.firstquestion.d],
            name: "task"
        }
    )
        .then(function (response) {
            switch (response.task) {
                case enquiries.firstquestion.a:
                    addSelect();
                    break;
                case enquiries.firstquestion.b:
                    viewSelect();
                    break;
                case enquiries.firstquestion.c:
                    handleEmployeeUpdate()
                    break;
                case enquiries.firstquestion.d:
                    endProgram();
            }
        })
}
function startQuestioning ( ) { inquirer . prompt ( { type : "list" , message : enquiries . firstquestion . question , choices : [ enquiries . firstquestion . a , enquiries . firstquestion . b , enquiries . firstquestion . c , enquiries . firstquestion . d ] , name : "task" } ) . then ( function ( response ) { switch ( response . task ) { case enquiries . firstquestion . a : addSelect ( ) ; break ; case enquiries . firstquestion . b : viewSelect ( ) ; break ; case enquiries . firstquestion . c : handleEmployeeUpdate ( ) break ; case enquiries . firstquestion . d : endProgram ( ) ; } } ) }
begins the user-facing program, asking them where they would like to go.
begins the user - facing program asking them where they would like to go .