I'm having a hard time figuring out where it's wrong... and runs with ``node app.js`` HAAALP

Like the title states, it runs fine when I type node app.js in terminal. I’m having a heck of a time debugging, someone help??


checkInventory(order)

.then((resolvedValueArray) => {

return processPayment(resolvedValueArray);

})

.then((resolvedValueArray) => {

return shipOrder(resolvedValueArray);

})

.then((successMessage) => {

return console.log(successMessage);

});

Thanks a bunch! :crazy_face:

Ah! Found it!
I had return before console. Removed that and worked.

1 Like