DEV Community

Discussion on: 😲🤯The most outstanding new feature in Javascript you need to know about: Optional Chaining

jessycormier profile image
Jessy Cormier

I would have to agree with you, however in the wild most code I've seen misinterprets this and there is mixed usage of both all over the place..

Thread Thread
lampewebdev profile image
Michael "lampe" Lazarski Author

And everybody is true here :)

I try to use undefined as much as I can instead of null.

But some frameworks want you to use null.