Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 9
    -1: pedantic, unhelpful, and primarily opinion-based. Commented Apr 26, 2016 at 23:07
  • fijiaaron is just joking with us here. Commented May 12, 2016 at 5:41
  • I am sympathetic to your dislike of the lexical form let because it is at odds with the tone of other keywords in the same category in JavaScript. Still this does not answer the question, and is not particularly well put. Downvoted Commented Oct 20, 2016 at 23:05
  • 4
    let is not just developers desiring more complexity. It is actually intuitively more understandable, because when you loop-and-close over vars, the closure maintains the last value of the var, but when you do the same over lets, each closure in the loop has its own value for let, a la the example by @Jerry101 above Commented Dec 28, 2016 at 13:33