1
JavaScriptIntermediate#es6#collections
undefined means a variable was declared but never assigned, or a missing property/return. null is an explicit assignment meaning 'no value'. typeof null is 'object' while typeof undefined is 'undefined'.
let a; // undefined let b = null; // intentional empty a == b; // true a === b; // false