FACN4 / Week6-Rate-My-GIT

The internet's premier GIT rating platform
https://rate-my-git.herokuapp.com/
0 stars 2 forks source link

Refactoring xhr.js #46

Open ghassanmas opened 6 years ago

ghassanmas commented 6 years ago

You could combine the two function in xhr.js for sending GET/POST request, if you add a parameter to the function that specifies method type.
xhr.open(url,method,true)