skip to Main Content

javascript promise and catch

I am studying javascript promises. The first code works fine, but the second code gives an error. When catching errors, isn't it sufficient for the reject function to be called? I don't understand the difference between using and not using…

VIEW QUESTION
Back To Top
Search