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 M1 Ajax Requests

Topics: - HTTP Requests, XHR GET Requests, XHR POST Requests

Project Title: Random Names

  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. Make a random name by sending a XHR GET Requests to this url and show result into console:
  1. Make a random female name by sending a XHR GET Requests to this url and show result into console:
  1. Make a random female name in germany by sending a XHR GET Requests to this url and show result into console:
  1. Create a random user by sending a XHR POST Requests to this url:

Note: This is post body:

{
  "name": "morpheus",
  "job": "leader"
}

Show the result into console

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.