Topics: - HTTP Requests, XHR GET Requests, XHR POST Requests
- Create a html file with your name like john.html
- Add current code to that file:
<!DOCTYPE html>
<html>
<body>
<script>
// your code here
</script>
</body>
</html>
- Make a random name by sending a XHR GET Requests to this url and show result into console:
- Make a random female name by sending a XHR GET Requests to this url and show result into console:
- Make a random female name in germany by sending a XHR GET Requests to this url and show result into console:
- 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
Send Pull Request. Check how to deliver your code: https://codingwithbasir.com/how-to-deliver-projects/
Download Learn JavaScript eBook from https://codingwithbasir.com/learn-javascript