Nullish Coalescing Operator - JavaScript Tutorial

preview_player
Показать описание
In today's video I'll be showing you how to use the Nullish Coalescing Operator (??) in JavaScript - which allows you to default values to a right-side operand when the left-side operand is "null" or "undefined".

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcodeyt!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #javascript
Рекомендации по теме
Комментарии
Автор

this was quick, straightforward and clear.
very appreciated

flowerofash
Автор

That's a really nice and concise example of how it works. I learnt something new today. Cheers.

tikeyike
Автор

Thanks for the quick and straightforward example.

amits-tb
Автор

Easy understand the concept. Very nice Bro

vikneshswag
Автор

Rapid fire bite sized knowledge droppin' braddah.. 👍

nerdiloo
Автор

Easiest way for me to make sense of it. ?? will accept a falsy value (as long as it's not nullish), but || will not.

graceoverall
Автор

I love using your theme tbh. But I want one more thing that many other themes have. If the *const* and *let* have different colours, it would look better. Thanks!

MaxProgramming
Автор

What's that extension to debug in VSCode in realtime?

clowndriver
Автор

So, how can you say this in a sentence?
For example with OR -- "cash will be starting cash or 500"
and with nullish coalescing operator -- "cash will null coalesce to starting cash or 500" ?

lightninginmyhands
Автор

Fuck, I don't speak British. Logical Ouuu xDDDD

clannajebyan
welcome to shbcf.ru