How to use the nullish coalescing operator (??) in Javascript

Image source: Negative Space/ @negativespace on Pexels

he nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand.

Simply put, the nullish coalescing operator let’s us truly check nullish values instead of falsey values.

Read more