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
       },
       ShowAlert:function(){
          alert(_.Config.foo);
       }
    }
    
    return {
        Init: _.Init,
        ShowAlert: _.ShowAlert
    };
}();

MyFunction.Init();
MyFunction.ShowAlert();