title: Reassign JavaScript variable via destructuring
body: <p>If I am declaring new variables in JavaScript, I can do so via destructuring as follows:</p>
  
  <pre class="lang-js prettyprint-override"><code>const myObj = {
    thing1: 'first thing',
    thing2: 'second thing'
  };
  
  const { thing1, thing2 } = myObj;
  </code></pre>
  
  <p>I'd like to do something similar but by <em>re</em>-assigning variables that are passed as parameters in a function (which are assigned via an implied <code>let</code> and therefore not static). I tried something like the following:</p>
  
  <pre class="lang-js prettyprint-override"><code>function myFun(thing1, thing2) {
    const myObj = {
      thing1: 'first thing',
      thing2: 'second thing'
    };
  
    { thing1, thing2 } = myObj;
  }
  </code></pre>
  
  <p>This gave me an unexpected token error on the <code>=</code>. Is this possible or can I only declare new variables with destructuring?</p>