lo = {};
lo.init = function() {
console.log('2')
}
(function() {})();
console.log('1')
lo.init();
2
Uncaught TypeError: undefined is not a function
1
2
lo = {};
lo.init = function() {
console.log('2');
};
(function() {})();
console.log('1');
lo.init();
lo.init = function() {
console.log('2');
};