Question : create http request
Answered by : gbor-deutsch
const xhr = new XMLHttpRequest();
let method = 'GET';
let endpoint = 'what you looking for';
xhr.open(method, endpoint);
xhr.send();
xhr.onload = () => { 'working what you get'
};
Source : https://www.tutorialspoint.com/http/http_requests.htm | Last Update : Wed, 20 Jan 21