JSFiddle - React, Tailwind, and code Playground

by btipling

HTML

<body>
    <div id="result"></div>
    <script type="text/javascript">
      
      (function() {
          var testScoped = "foo";
          console.log(window === this);
      }).call(this);

      var varScoped = "bar";
      testGlobalScoped = "foobar";

      console.log("testScoped: ", this.testScoped);
      console.log("varScoped: ", this.varScoped);
      console.log("testGlobalScoped: ", this.testGlobalScoped);
    </script>
  </body>