The typeof Operator
Learn about the usage of typeof operator to get the type of a value.
We'll cover the following...
The typeof
operator accepts one operand and returns a string. This string describes the type of object.
Press + to interact
typeof '' // "string"typeof 0 // "number"typeof true // "boolean"typeof {} // "object"typeof [] // "object"typeof null // "object"typeof undefined // "undefined"typeof Symbol() // "symbol"
...