The typeof operator returns the type of the operand on which it is applied, thus returns the string
array when invoked on an array.
The typeof operator applied on an array returns 'array'
The typeof operator applied on an array returns 'object'
CorrectionHere is what's right.
typeof operator returns a proper result for primitive types (Undefined, Null, Boolean, Number, String, Symbol, BigInt).
object when applied on an array.