call function from object javascript value code example
Example 1: calling function from function object javascript
var runApp = {
init: function(){
this.run()
},
run: function() {
alert("It's running!");
}
};
runApp.init();
Example 2: js call and apply
func.call([thisArg[, arg1, arg2, ...argN]])