calling object methods within another object javascript code example
Example: function inside object javascript
var obj = {
func: function(a, b) {
return a * b;
}
};
obj.func(3, 6); // 18
var obj = {
func: function(a, b) {
return a * b;
}
};
obj.func(3, 6); // 18