DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+7 =
Submit