Get prop of an obj inside obj using string : <p>Let's say I have this obj here:</p>

<pre><code>let obj1 ={
  a: 4,
  b: {
    ab: 44,
    c: {
      tres: 100
    }
  }
};
</code></pre>

<p>How can I access the <strong>tres</strong> property using a string? I can access <strong>b</strong> object using this code:</p>

<pre><code>let prop = "b";
console.log(obj1[prop]); // returns b property
</code></pre>

<p>But how can I get access to a <strong>tres</strong> property that resides inside <strong>c</strong> inside <strong>b</strong> inside <strong>obj1</strong> object?</p>
