Monday, June 29, 2015

Does javascript have the concept level scope?



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.

No comments:

Post a Comment

What is restrict option in directive?

The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...