Are there legitimate uses for JavaScript’s “with” statement?
Another use occurred to me today, so I searched the web excitedly and found an existing mention of it: Defining Variables inside Block Scope. Background JavaScript, in spite of its superficial resemblance to C and C++, does not scope variables to the block they are defined in: var name = “Joe”; if ( true ) … Read more