DEV Community

loading...

Discussion on: How do you deal with null vs undefined?

Collapse
aakatev profile image
Artem

Simple answer: Be consistent with their use in your code.
There are subtle differences, were one can have variable behavior from the other. However, in most cases it is personal preference.