type of a value.
Last updated 2 years ago
JS ⟩ value ⟩ type ⟩ name ⟩ typeof
JS ⟩ operator ⟩ unary ⟩ typeof
(unary operator) determines the type of a value. ( type name)
typeof let/const/class in TDZ gets an error❗️
👉 compare: typeName()
'boolean'
'string'
'number'
'bigint'
'symbol'
'undefined'
'function'
'object'
( null is a ❗️)
any other objects, like
Date
instances of
...
typeof null === "object" // true
typeName() - refined version of typeof.
typeof