ex. let a; console.log(a); // Output: undefined
Null refers to the assignment of value to a variable that isn’t meant to contain any value.
ex. let b = null; console.log(b); // Output: null
Undeclared refers to variables that don’t exist in an application or program or haven’t been declared.
ex. console.log(c); // ReferenceError: c is not defined