Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2012 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3740886 to your computer and use it in GitHub Desktop.
Save anonymous/3740886 to your computer and use it in GitHub Desktop.
function funcName(){
var varname = 0;
if(condition){
var varname = 1;
}
}
//will be interpreted as
function funcName(){
var varname;
varname = 0;
if(condition){
varname = 1;
}
}
//and therefore is the same as
function funcName(){
var varname = 0;
if(condition){
varname = 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment