Is "function" a JavaScript type?
For example:
console.log(typeof alert) // returns function
Which suggests that "function" is indeed a type
However, in this ECMAscript documentation it says:
The ECMAScript language types are Undefined, Null, Boolean, String, Symbol, Number, BigInt, and Object”.
Could someone explain this to me?
Thanks in advance :)
Functionas a separate ECMAScript type - that page says it's a "structural type" which is not the same thing as a fundamental ECMAScript type.