Let's say I have this obj here:
let obj1 ={
  a: 4,
  b: {
    ab: 44,
    c: {
      tres: 100
    }
  }
};
How can I access the tres property using a string? I can access b object using this code:
let prop = "b";
console.log(obj1[prop]); // returns b property
But how can I get access to a tres property that resides inside c inside b inside obj1 object?
 
    