Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
What would happen if a fetch gets rejected or returns in a failed state? To handle these types of errors, you use the catch()
method, which deals with rejected cases only.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
amatey dillion
33 Points2 Answers
-
Samuel Kleos
Front End Web Development Techdegree Student 13,728 Points1 Answer
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Sean Gabriel Villoria
8,515 Points1 Answer
-
Uche Onuekwusi
18,070 Points1 Answer
-
Tomasz Grodzki
8,130 Points2 Answers
-
Stheven Cabral
Full Stack JavaScript Techdegree Graduate 29,854 Points1 Answer
-
Rebecca Palumbo
5,506 Points2 Answers
-
George Roberts
Full Stack JavaScript Techdegree Student 8,474 Points1 Answer
-
rita rita
74 Points2 Answers
-
Nour El-din El-helw
8,241 Points0 Answers
-
Tucker Blackwell
3,397 Points1 Answer
-
Saqib Ishfaq
13,912 PointsWe mentioned .catch() in the fetchData() to handle the error when fetch fails,then whats point of this>>>
Posted by Saqib IshfaqSaqib Ishfaq
13,912 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up