Skip to content

Instantly share code, notes, and snippets.

@fuchao2012
Created May 21, 2015 06:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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