馃捇 Full Stack Dev 馃帹 UI designer 馃帗 Student 馃摵 Youtuber @ youtube.com/DevProTips 馃悪 git.io/DenverCoder1
Nothing here yet.
Great explanation. Only 1 thing -- the 2 snippets are not equivalent. This will log the output the console only if person and socialMedia are defined: if (person?.socialMedia?.twitter) { console .log (person.socialMedia.twitter); // outputs @catalinmpit } This will log undefined to the console when person or socialMedia not defined: console .log ( person ? .socialMedia ? .twitter )