DEV Community

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

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I think null is for explicitly acknowledging that this has no value and if it's undefined it's a better indication of a bug / error / unhandled case.