call a function from an object javascript code example
Example: calling function from function object javascript
var runApp = {
init: function(){
this.run()
},
run: function() {
alert("It's running!");
}
};
runApp.init();