1let nestedObject = { levelOne: { levelTwo: { levelThree : 'final destination'} } }
2
3const prop1 = 'levelOne';
4const prop2 = 'levelTwo';
5const prop3 = 'levelThree';
6
7var destination = nestedObject[prop1][prop2][prop3];
8
9// destination = 'final destination'