title: Object destructuring in JavaScript
body: <pre><code>&gt;{a} = {a: true} // Statement
  &lt;{a: true}
  </code></pre>
  <p>The above statement is assigning the value <code>true</code> to <code>a</code></p>
  <p>Why is the above statement not giving error in the chrome console? While the below statement gives an error.</p>
  <pre><code>&gt;{a} = {a: true}; // Statement
  &lt;Uncaught SyntaxError: Unexpected token '='
  </code></pre>
  <p>How does the semicolon at the end matter?</p>