Basic JavaScript Question:
Does JavaScript have the concept level scope?
Answer:
No. Javascript does not have block level scope, all the variables declared inside a function possess the same level of scope unlike c, c++, java.
Previous Question | Next Question |
What is variable typing in JavaScript? | What are undefined and undeclared variables? |