null or undefined.
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❗
Last updated 2 years ago