title: How to create a new nested property in an object?
body: <p>If I create an object by doing <code>let obj = {}</code>, I can create a new <code>link</code> property by doing <code>obj.link = 'test'</code> and it works.</p>
  <p>What if I want instead to create a nested property?</p>
  <p>The code below gives an <code>undefined</code> error:</p>
  <pre><code>let obj = {}
  obj.link.link = 'test'
  console.log(obj.link.link)
  </code></pre>
  <p>What's the right way to do this?</p>