Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
JohnAdemoye.html
Oluwaseyi.html
README.md

README.md

Project JavaScript M2 Ajax Requests

Topics: fetch() GET Requests, fetch() POST Requests, async GET Requests, async POST Requests

Project Title: User Management

  1. Create a html file with your name like john.html
  2. Add current code to that file:
<!DOCTYPE html>
<html>
  <body>
    <script>
      // your code here
    </script>
  </body>
</html>
  1. Show user at page 2 by running fetch() Get Request over this url:
  1. Get Info a single user and show in console.
  1. Create a new user.
{
  "name": "morpheus",
  "job": "leader"
}
  1. Update a user.
{
  "name": "morpheus",
  "job": "zion resident"
}
  1. Delete a user.
{
  "name": "morpheus",
  "job": "zion resident"
}
  1. Login a user and show token into console.
{
  "email": "eve.holt@reqres.in",
  "password": "cityslicka"
}

Want to get reviewed?

Send Pull Request. Check how to deliver your code: https://codingwithbasir.com/how-to-deliver-projects/

Need help?

Download Learn JavaScript eBook from https://codingwithbasir.com/learn-javascript

You can’t perform that action at this time.