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
The default HTTP method for making fetch requests is GET
, which retrieves data from a server. You can make requests other than GET
(like POST
, DELETE
, and PUT
) by passing additional information to fetch()
.
Code Snippets
fetch('https://jsonplaceholder.typicode.com/comments')
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
henos kwame
37 Points0 Answers
-
Amy Preci
6,247 PointsWhy didn't we need to use async/await in this workshop at all? I often see it used with fetch.
Posted by Amy PreciAmy Preci
6,247 Points1 Answer
-
karan Badhwar
Web Development Techdegree Graduate 18,135 Points1 Answer
-
Damian Świeboda
4,962 Points1 Answer
-
Muaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 Points1 Answer
-
Eduardo Osorio
Full Stack JavaScript Techdegree Graduate 20,847 Points1 Answer
-
Junior Aidee
Front End Web Development Techdegree Graduate 14,657 Points2 Answers
-
anmo20
6,470 PointsHow to get the dropdown and <p> to have the data from the random image loaded when the page initially loads?
Posted by anmo20anmo20
6,470 Points1 Answer
-
PLUS
Jonathan Ambriz
Courses Plus Student 3,902 Points1 Answer
-
Carlos Chavez
5,691 Points3 Answers
-
Joseph Michelini
Python Development Techdegree Graduate 18,692 Points1 Answer
-
PLUS
Richard Preske
Courses Plus Student 4,356 Points1 Answer
-
Serge Churkin
3,267 Points1 Answer
-
David Mulholland
Full Stack JavaScript Techdegree Graduate 24,063 Points2 Answers
-
Joshua Ouma
20,865 Points1 Answer
-
Christian Delos Reyes
9,199 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