Beginners quickly notice that typeof [] is not as useful as they expect. This lesson teaches the practical pair: typeof for primitives and Array.isArray() for arrays.
console.log(typeof "hello");
console.log(Array.isArray([1, 2, 3]));
Use typeof for primitive values like strings.