null or undefined.
Last updated 2 years ago
JS ⟩ value ⟩ nullish
Any non-nullish value has .toString() method. (usually equivalent to String())
jane.boyfriend?.money.more
obj ?. prop returns undefined if obj is nullish.
obj ?. prop
obj
f ?. () returns undefined if f is nullish.
f ?. ()
f
possible errors:
TypeError:cannot read properties of nullish