JSFiddle - React, Tailwind, and code Playground
by jrm2k6
JavaScript
function httpGet(theUrl)
{
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
var t = httpGet("https://www.googleapis.com/plus/v1/people/me");
console.log(t);
$.get("https://www.googleapis.com/plus/v1/people/me", function(data) {
console.log(data);
})