See more
A promise is an object that may produce a single value some time in the future: either a resolved value, or a reason that it’s not resolved (e.g., a network error occurred). A pr…
I recommend ending all promise chains with a .catch().
.catch()
“I suggest that you become obsessed about the things you want; otherwise, you are going to spend a lifetime being obsessed with making up excuses as to why you didn’t get the life you wanted.” -Grant Cardone