Nullish Coalescing or Nullish Koala-sing 🐨🎤 (whichever sounds good 😅) works using GIFs.
👇Things to note before we get started:
- Short-circuiting is denoted by
- At the time of writing this post, Nullish Coalescing was a
Alright, let's get started with the different scenarios of its usage
Notice how short-circuiting (denoted by ⚡️) happens when the LHS is
undefined. It doesn't matter if the LHS is falsy values except for
Note: Explicit parentheses groups are required to mix with
That's it for today and I hope you found it useful!
And hey, I ❤️ learning from and staying in touch with the curious folks out there (I'm looking at you. Yeah, YOU!). So, please feel free to reach out if you have any questions or suggestions 🙋♀️🙋♂️ I'm all ears 🤩
Auf wiedersehen 🙌🏼
Repo Link :