JSFiddle - React, Tailwind, and code Playground

by Chuan Shao

JavaScript

var a = this;
console.log(a);//window object
console.log(a.outerWidth);//access window object's attribute
console.log(a.isNaN);//access JS global object's attribute

x = "test";
console.log(a.x);//access newly created global variable value