Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

function inside object javascript

var obj = {
  func: function(a, b) {
    return a * b;
  }
};

obj.func(3, 6); // 18
 
PREVIOUS NEXT
Tagged: #function #object #javascript
ADD COMMENT
Topic
Name
4+5 =