Basic JavaScript Question:

Does JavaScript have the concept level scope?

Tweet Share WhatsApp

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.

Download JavaScript PDF Read All 114 JavaScript Questions
Previous QuestionNext Question
What is variable typing in JavaScript? What are undefined and undeclared variables?