The Global object has properties and methods at the highest level, without a parent object. This means the global properties and functions can be used with all the built-in JavaScript objects.
var xn = 1.8976543348623157E+12088; document.write(xn); // Infinity
var minutes = 61; if(minutes<0 || minutes>60) { minutes = Number.NaN; } document.write(minutes); // NaN
var xv; if(xv==undefined) { document.write('xv is undefined'); }
var str = 'ab @# 78'; document.write(escape(str)); // ab%20@%23%2078
let str ="document.write('coursesweb.net');"; eval(str); // coursesweb.net
document.write(isFinite(123) +'<br>'); // true document.write(isFinite('string')); // false
document.write(isNaN(123) +'<br>'); // false document.write(isNaN('string')); // true
var dat = new Date(); document.write(Number(dat) +'<br>'); // 1296464847762 document.write(Number('0078')); // 78
document.write(parseFloat('12.8 pm')); // 12.8
document.write(parseInt('12.8 pm')); // 12
var dat = new Date(); document.write(String(dat)); // Mon Jan 31 2011 11:13:47 GMT+0200 (GTB Standard Time)
var str = 'ab%20@%23%2078'; document.write(unescape(str)); // ab @# 78
<img src="image.jpg" usemap="#map1"> <map name="map1"> <area shape="rect" coords="9, 120, 56, 149" href="#"> <area shape="rect" coords="100, 200, 156, 249" href="#"> </map>
#id { overflow: auto; }
document.getElementById("id").onmouseover = function(){ document.write("Have Good Life"); }
if(isset($_GET["id"])) { echo $_GET["id"]; }