undefined typically means it has yet to be defined whereas null means it does not have a proper value set. For example I use null where there is an exception an cannot set a variable to a sane value.
When I see null it means a value could not be set or that it was intentionally unset. undefined means it was never set in the first place.
When I see null it means a value could not be set or that it was intentionally unset. undefined means it was never set in the first place.