Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

anonymous function parameters javascript

function caller(otherFunction) {
     otherFunction(2);
 }
caller(function(x) {
    console.log(x); 
});
Source by itsjavascript.com #
 
PREVIOUS NEXT
Tagged: #anonymous #function #parameters #javascript
ADD COMMENT
Topic
Name
3+7 =