At most places on Web, data types in JavaScript are mentioned as -
- Boolean
- Null
- Undefined
- Number
- String
- Symbol
- Object
I have a query about data type of a function -
The typeof operator for a function declaration or definition returns "function". Then how come "Function" is not listed as a data type? Also, aren't functions Objects in JavaScript? Then how come typeof of function declaration or definition returns "function" and not "Object"?