JSFiddle - React, Tailwind, and code Playground

by ronilan

HTML

//iife

JavaScript

//iife
var MyThing = (function() {

  expose = {};

  function logger(thingToLog) {

    console.log(thingToLog);

  };

  expose.log = function(thing) {

    logger(thing);

  };

  return expose;

})();


(function(expose) {

	expose.say = 'hello';

})(expose)


MyThing.log('hi');
MyThing.log(MyThing.say);