411 REFERENCE · Wikibooks
JavaScript/Reserved words/typeof
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
JavaScript try var Reserved words 0
The typeof keyword
The typeof keyword is a unary operator that returns a string giving the type of the parametre.
Syntax
typeof[(]expression[)];
The operator returns six values, which are boolean, function, number, object, string, and undefined.
Examples
theArray = new Array();
if (typeof(theArray) == 'object') {
[…]
}
JavaScript try var Reserved words 0