Does JavaScript have the concept level scope?

Q

Does JavaScript have the concept level scope?

✍: Guest

A

No. JavaScript does not have block level scope, all the variables declared inside a function possess the same level of scope unlike c, c++, and java.

2011-01-25, 3885👍, 0💬