title: What's the difference between object destructuring and normal object assignment in Javascript ES6?
body: <p>What's the difference between this two code examples (besides the syntax of course)?</p>
  
  <h2>EXAMPLE 1:</h2>
  
  <pre><code>var user = {
     name: 'Diego',
     age: 25
  }
  
  var {name} = user;
  
  console.log(name); // Diego
  </code></pre>
  
  <h2>EXAMPLE 2:</h2>
  
  <pre><code>var user = {
     name: 'Diego',
     age: 25
  }
  
  var name = user.name;
  
  console.log(name); // Diego
  </code></pre>
  
  <p>Both examples assign the same value. I don't get what's the difference or vantage/advantage of using either.</p>