|
|
|
|
|
by reificator
2060 days ago
|
|
Undefined should mean in most cases that you've made a programming mistake, be that a typo or an invalid assumption about the type of thing you're getting back. Null should mean in most cases that the data you wanted to access was invalid, but you can expect it to exist there in other circumstances. Neither are a guarantee in JS, and you can find counterexamples for the counterexamples of the counterexamples, but that's the intention behind each. |
|