JSFiddle - React, Tailwind, and code Playground
by ismusidhu
JavaScript
if (typeof kf == 'undefined') { kf = {}; }
if (typeof kf.logic == 'undefined') { kf.logic = {}; }
if (typeof kf.logic.memorable == 'undefined') { kf.logic.memorable = {}; }
$.extend(true, kf.logic.memorable, function () {
function myprivateFn(){
return "say alert";
}
return {
AnotherProperty : function () {
alert(myprivateFn());
}
}
}()
);
$(function(){
kf.logic.memorable.AnotherProperty();
});