Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Http = new XMLHttpRequest();
- const url = "API_LINK_TO_CALL"
- ;
- Http.open("GET", url);
- Http.send();
- Http.onreadystatechange=(e)=>{
- result = JSON.parse(Http.responseText);
- console.log(result);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement