Skip to content

Glossary: Software Design Patterns in JavaScript

Nullish coalescing (??)

Also written: ??

An operator that uses its right side only when the left is undefined or null. discountFor uses it to fall back to noDiscount when a code isn't found.

Where the book teaches it

Related terms

Optional chaining (?.)