- Create an empty HTML file.
- Create and link a JavaScript file to your
index.htmlpage. - In your JavaScript file, make an AJAX request to
"https://jsonplaceholder.typicode.com"/usersendpoint. This request should log the first 5 users to the console. - Create a function
getLogthat takes a URL string argument, makes a GET request to that URL, and then logs the response to the console. - Create a more general function,
get, that takes two arguments, a URL and a callback function. This function should make a GET request to the URL and pass the response to the given callback function. Test this function out on"https://jsonplaceholder.typicode.com/posts"
-
Notifications
You must be signed in to change notification settings - Fork 10
Code Fluency: AJAX Practice
License
The-Marcy-Lab-School/ajax_fluency
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Code Fluency: AJAX Practice
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published