A variable is said to be undeclared when you are trying to use it before you even declare it - it doesn't exist.
console.log(a); //ReferenceError: a is not definednull is a value given to a variable to indicate that it is empty.
var a = null;
console.log(a); // nullA variable is undefined when it is used but does not have a value.
var a;
console.log(a); // undefined