Skip to content

Latest commit

 

History

History
 
 

project-javascript-m1-ajax-requests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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