Basic JavaScript Question:

Download Job Interview Questions and Answers PDF

Does JavaScript have the concept level scope?

JavaScript Interview Question
JavaScript Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is variable typing in JavaScript? What are undefined and undeclared variables?