Why is there a "let" statement in JavaScript 1.7?

I was looking at the JavaScript 1.7 specification recently and it wasn't immediately obvious to me what the purpose of the new let statement was for. I'll give you a hint: it's related to closures.  



July 26, 2008
URL:http://www.drdobbs.com/architecture-and-design/why-is-there-a-let-statement-in-javascri/228700127

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.