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 gist.github.com #
 
PREVIOUS NEXT
Tagged: #anonymous #function #parameters #javascript
ADD COMMENT
Topic
Name
1+8 =