Created
May 14, 2010 17:35
-
-
Save adamnoffie/401406 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// what does this do?: | |
(function(){ | |
var i = 5; | |
}()); | |
// is it like a javascript hack equivalent to the jQuery(document).ready()? e.g.: | |
$(function() { | |
var i = 5; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(function(){alert("WHAK.com")}());
is a auto running function, see it live on http://jsfiddle.net/d48jb6yw/.Closure controller? This technically is called a wrapped "IIFE". This stands for Immediately Invoked Function Expression, more on https://en.wikipedia.org/wiki/Immediately-invoked_function_expression