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
Let's get started by writing a basic fetch request using the global fetch()
method. Then we'll use JavaScript promises to handle the results returned from the server.
Code Snippets
fetch('https://dog.ceo/api/breeds/image/random')
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PLUS
Isaiah Bollinger
Courses Plus Student 16,252 Points1 Answer
-
Murilo de Melo
14,456 Points1 Answer
-
PLUS
Richard Preske
Courses Plus Student 4,356 Points2 Answers
-
Catalina Villalonga
5,760 Points2 Answers
-
Zachary Reed
9,214 Points12 Answers
-
Alexander D
8,685 Points2 Answers
-
vamosrope14
14,932 Points2 Answers
-
vamosrope14
14,932 Points1 Answer
-
L Haney
Front End Web Development Techdegree Student 10,263 Points1 Answer
-
Tibor Ruzinyi
17,968 Points2 Answers
-
Stephen Falck
7,558 Pointsusing a fetch request in my own project and receiving error message
Posted by Stephen FalckStephen Falck
7,558 Points1 Answer
-
Nour El-din El-helw
8,241 Points1 Answer
-
Akili Foster
68 PointsI am confused on how to use Fetch. What is the basic purpose of it?
Posted by Akili FosterAkili Foster
68 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