From the course: JavaScript: Ajax and Fetch
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Fix an Ajax request - JavaScript Tutorial
From the course: JavaScript: Ajax and Fetch
Challenge: Fix an Ajax request
(peppy music) - [Instructor] It's time for a challenge. Ready to try your hand at debugging an Ajax request? For this challenge, you need to use the begin folder for this video, which contains a broken API request for SmartyStreets. You'll need to troubleshoot and fix the errors. I've separated out the API key portion of the URL into its own variable to make it easier for you to swap in your own key. Be sure to update this value with your own key, or the request won't work. You'll know you're done when the zip code functionality in the form works. This challenge could take around 10 minutes. When you're done, join me in the next video, and I'll go over how I approached it.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Structure Ajax requests for performance2m 49s
-
(Locked)
View requests and responses in the browser3m 21s
-
(Locked)
Work with authorization errors2m 56s
-
(Locked)
Work with malformed requests5m 15s
-
(Locked)
Work with errors in Fetch4m 44s
-
(Locked)
Provide error fallbacks7m 15s
-
(Locked)
Challenge: Fix an Ajax request49s
-
(Locked)
Solution: Fix an Ajax request4m 29s
-
(Locked)
-
-