JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://curtistimson.co.uk" target="_blank">curtistimson.co.uk</a>
JavaScript
var MyFunction = function(){
var _ = {
Init: function(){
_.Config.foo = "hello world";
},
Config:{
foo:null
},
UI:{
Display:{
ShowAlert:function(){
alert(_.Config.foo);
},
}
}
}
return {
Init: _.Init,
ShowAlert: _.UI.Display.ShowAlert
};
}();
MyFunction.Init();
MyFunction.ShowAlert();