title: What is the difference between "let" and "var"?
body: <p>ECMAScript 6 introduced <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let" rel="noreferrer">the <code>let</code> statement</a>.</p>
  <p>I've heard that it's described as a local variable, but I'm still not quite sure how it behaves differently than the var keyword.</p>
  <p>What are the differences? When should <code>let</code> be used instead of <code>var</code>?</p>