Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAkili Foster
68 PointsI am confused on how to use Fetch. What is the basic purpose of it?
I am confused on how to use Fetch. What is the basic purpose of it?
1 Answer
Steven Parker
231,269 PointsFetch allows you to request additional resources without reloading the page. It is an updated and simplified replacement for "XMLHttpRequest" which is part of the AJAX mechanism.
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsErik L
Full Stack JavaScript Techdegree Graduate 19,470 Pointsso does this mean that the fetch API can serve as a replacement for the XMLHttpRequest and jQuery ajax request methods??
Steven Parker
231,269 PointsSteven Parker
231,269 PointsAs I said, it's intended as a replacement for XMLHttpRequest. It's similar to the jQuery methods, but it lacks some of the CORS (security) handling that jQuery does.