I want to know what the difference is between null and undefined in JavaScript.
null
undefined
As typeof returns undefined, undefined is a type where as null is an initializer indicates the variable points to no object(virtually everything in Javascript is an object).