Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call a self executing function javascript

var foo = (function bar() {
   alert('hello');
   return bar;
})();   // hello

foo();  // hello
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #executing #function #javascript
ADD COMMENT
Topic
Name
2+8 =