$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #183
What is the output?
const o = {}; console.log(o.a?.b);
undefined
TypeError
null
{}
Optional chaining short-circuits the whole expression to undefined instead of throwing.
Play Problem Solving ▸
◂ #182
all Problem Solving — predict the output questions
#184 ▸