title: About destructuring objects. Why are they undefined?
body: <p>Why do <code>test1</code> and <code>test2</code> get the value <code>undefined</code> in this code?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let car={id:10,style:'go'};
  
  let {test1,test2}=car;
  
  console.log(test1,test2);</code></pre>
  </div>
  </div>
  </p>