JSFiddle - React, Tailwind, and code Playground

JavaScript

(function () {
    "use strict";
    
    this.foo = "bar"; // this is undefined?
}());

var baz = function () {
    "use strict";
    
    this.foo = "baz";
};

baz();