Skip to content

Instantly share code, notes, and snippets.

@fuchao2012
Created May 21, 2015 06:55
Show Gist options
  • Save fuchao2012/db9d65a0b79ee6549bea to your computer and use it in GitHub Desktop.
Save fuchao2012/db9d65a0b79ee6549bea to your computer and use it in GitHub Desktop.
function fuchao(a){
console.log(a);
var a=2;
function a(){};
console.log(a);
}
fuchao(1);
//var and function predefinations
//can you tell the result?
//tips: function>arguments>gloabl>inside
@fuchao2012
Copy link
Author

global in line 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment