Handling Rejected Promises

Описание к видео Handling Rejected Promises

Until now we have always assumed that everything went well with our AJAX calls.

So, we never handled any errors. However, an important part of web development is to handle errors. Because its very common that error happens in web applications.

So, in this lecture, lets talk about how to handle errors in promises. Remember that, a promise in which an error happens is a rejected promise. So, in this lecture you will learn how to handle promise rejection. You will learn:

1. How to handle a promise using then method
2. How to handle a promise using catch method
3. What is finally method?

Комментарии

Информация по комментариям в разработке