Answers for "make get request javascript"

2

Javascript Http Get Request

const Http = new XMLHttpRequest();
const url='https://jsonplaceholder.typicode.com/posts';
Http.open("GET", url);
Http.send();

Http.onreadystatechange = (e) => {
  console.log(Http.responseText)
}
Posted by: Guest on September-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language