Answers for "make http request in javascript"

2

create http request javascript

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 "make http request in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language