title: How to check if obj1.obj2 exists before accessing a property on obj2
body: <p>Given the variable obj1.obj2.obj3, write a JavaScript snippet to get the value of this variable, which will not cause errors if obj1 or obj2 is undefined.</p>