Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

calling anonymous function while declaring it

var step = (function(){
    // this code is executed immediately, 
    // the return value is assigned to `step` 
})();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calling #anonymous #function #declaring
ADD COMMENT
Topic
Name
6+1 =