let obj; console.log(obj && obj.someProp); // Prints undefined