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.
Glossary: Software Design Patterns in JavaScript
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.