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.

2008-12-02, 4202👍, 0💬