JSFiddle - React, Tailwind, and code Playground

by Dinesh Patra

HTML

<div id="test"></div>
<div id="test2"></div>
<div id="test1"></div>

JavaScript

(function(w){
    
	document.getElementById("test").innerHTML 
        = "Type of w without strict = " + typeof(w);
    console.log(w);
    "use strict";
    console.log(w.parent);
    document.getElementById("test2").innerHTML 
        = "Type of w strict = " + typeof(w);
})(window);

	document.getElementById("test1").innerHTML 
        = "Type of window = " + typeof(window);