JSFiddle - React, Tailwind, and code Playground
JavaScript
var foo = function(){
bar = 'baz';
return this;
};
// Value of 'bar' ___not defined because the function has never run______
var bee = new foo();
// Value of 'bee.bar': __not defined because bar is now on the window________
// Value of 'bar': _baz___________