function prompter() {
    inquirer.prompt([{
        type: "list",
        name: "userInput",
        message: "Choose from available choices below:",
        choices: ["View Products", "View Low-Inventory", "Add to Inventory", "Add New Products"]
    }]).then(function (answer) {
        console.log(answer.userInput, "choice");
        switch (answer.userInput) {
            case "View Products":
                listItems();
                break;
            case "View Low-Inventory":
                lowInventory();
                break;
            case "Add to Inventory":
                addQty();
                break;
            case "Add New Products":
                addItem();
                break;
            default:
                "fail"
        }
    });
}
/*The app should then prompt users with two messages. Then depending on the response from user, it checks on the quanity first then move to function */
The app should then prompt users with two messages. Then depending on the response from user, it checks on the quanity first then move to function
The app should then prompt users with two messages . Then depending on the response from user it checks on the quanity first then move to function
function prompter() {
    inquirer.prompt([{
        type: "list",
        name: "userInput",
        message: "Choose from available choices below:",
        choices: ["View Products", "View Low-Inventory", "Add to Inventory", "Add New Products"]
    }]).then(function (answer) {
        console.log(answer.userInput, "choice");
        switch (answer.userInput) {
            case "View Products":
                listItems();
                break;
            case "View Low-Inventory":
                lowInventory();
                break;
            case "Add to Inventory":
                addQty();
                break;
            case "Add New Products":
                addItem();
                break;
            default:
                "fail"
        }
    });
}
function prompter ( ) { inquirer . prompt ( [ { type : "list" , name : "userInput" , message : "Choose from available choices below:" , choices : [ "View Products" , "View Low-Inventory" , "Add to Inventory" , "Add New Products" ] } ] ) . then ( function ( answer ) { console . log ( answer . userInput , "choice" ) ; switch ( answer . userInput ) { case "View Products" : listItems ( ) ; break ; case "View Low-Inventory" : lowInventory ( ) ; break ; case "Add to Inventory" : addQty ( ) ; break ; case "Add New Products" : addItem ( ) ; break ; default : "fail" } } ) ; }
The app should then prompt users with two messages.
The app should then prompt users with two messages .