Course contentsShow
JavaScript
Lesson 1959 of 2,72341. Modern JavaScript Features (ES2020+)Pro lesson

The ??= (Nullish Coalescing Assignment) Operator

Using ??= to assign a value only if the left operand is null or undefined, avoiding falsy false positives.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.