call a self executing function javascript

Solutions on MaxInterview for call a self executing function javascript by the best coders in the world

showing results for - "call a self executing function javascript"
River
11 Apr 2016
1var foo = (function bar() {
2   alert('hello');
3   return bar;
4})();   // hello
5
6foo();  // hello
7