In Javascript null is an empty or non-existent value and it must be assigned. But Undefined means a variable has been declared, but not value has not been defined.
let a = null;
console.log(a); // null
let b;
console.log(b); // undefined
In JS both null and undefined are primitive values. Also you can look the following lines of code
console.log(typeof null); //Object
console.log(typeof undefined); //undefined
console.log(10+null); // 10
console.log(10+undefined); //NaN