My Blog
If you understand what’s going on when this runs, then you understand javascript scoping.
var x = 5; alert(x);
function foo(){alert(x);var x = 10;alert(x);}
foo(); alert(x);
Published 2008.11.24 & Filed in Javascript
Tags: Javascript, linkedin
Write comment - Trackback