print with js code example
Example 1: GET req with js
function httpGet(theUrl) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
Example 2: js how to print
console.log(text);
Example 3: javascript print
console.log("Who's Joe?")