JSFiddle - React, Tailwind, and code Playground
by cmruser
JavaScript
var GLOBAL = (function () {
var my = {}, privateVariable = 1;
function privateMethod() {
// ...
}
my.moduleProperty = 1;
my.moduleMethod = function () {
// ...
console.log('a');
};
return my;
}());
var FORM = (function (gb) {
var my = {};
my.init = function () {
// added method...
alert('init');
};
return my;
}(GLOBAL || {}));
FORM.init();