Till now I was expecting that there in no block level scope in Javascript. But after reading this article I came to know that block-scoped variables are introduced in javascript. Although this article <Everything you need to know about Javascript variable scope > has a very good explaination about the javascript variable scope, I am still wondering the list of browsers and their versions where we can start using block-scoped variables.
It would be great if you could add to the information about block-scope variable in javascript.
Mr 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.