If you had experience in other languages, but little with JavaScript , you may think it would alert 100, then 20, but it does not. Because a variable “a” exists in the scope of the closure (inside the anonymous function) it won’t use the …
If you had experience in other languages, but little with JavaScript , you may think it would alert 100, then 20, but it does not. Because a variable “a” exists in the scope of the closure (inside the anonymous function) it won’t use the …
If you had experience in other languages, but little with JavaScript , you may think it would alert 100, then 20, but it does not. Because a variable “a” exists in the scope of the closure (inside the anonymous function) it won’t use the …
If you had experience in other languages, but little with JavaScript, you may think it would alert 100, then 20, but it does not. Because a variable “a” exists in the scope of the closure (inside the anonymous function) it won’t use the …
If you had experience in other languages, but little with JavaScript , you may think it would alert 100, then 20, but it does not. Because a variable “a” exists in the scope of the closure (inside the anonymous function) it won’t use the …
Read more:
JavaScript: Broken as intended « Scott Downe's Blog