July 1998
Intermediate to advanced
1456 pages
65h 5m
English
typeof — NN 3 IE J1 ECMA 1
The typeof operator. This unary operator returns
one of six string descriptions of the data type of a value. Those
returned types are:
boolean
function
number
object
string
undefined
The object type includes arrays, but the operator provides no further information about the type of object or array of the value.
if (typeof someVar == "string") {
...
}Read now
Unlock full access