A Nullish Coalescing (in JS) Tutorial for Normal People | HackerNoon

  • Type: Blog Post
  • Technologies - JavaScript
  • Metrics - 10K + Readers and featured at the hackernoon's main page
  • Published At - Hackernoon

So what exactly is nullish coalescing? Basically, it’s a short, simple way to provide a default value when something is null or undefined. Instead of having messy nested ternaries or logical OR statements, you can use the double question mark operator (??) to coalesce to a default.

24 Jun 2023

Keywords
coding
javascript
technical writing

Creating portfolio made simple for

Trusted by 38700+ Generalists. Try it now, free to use

Start making more money