Hi I'm new to Javascript, and I'm reading the Oreilly's Javascript the definitive guide. In the declaration statement section it says:
I made a simple test:
var a = 1;
while(a < 5){
a++;
function double(a){return a * 2 };
console.log(double(a));
}
It seems the node.js doesn't give me any error and run as expect. Any comment on this?