I want to check that a value is not declared or a value is not initialized in JavaScript. It is confused that typeof operator returns undefined in two above situations.
// age is not declared
console.log(typeof someUndeclaredVariable); // undefined
let otherVariable; // age is declared but not initialized
console.log(typeof otherVariable); // undefined
THANKS