Language
Version: 1.8.5
Categories
-
User Program Communication
-
Variables
-
Control Flow
-
Functions
-
Objects
Variables
Determine Type in JavaScript
Used to determine the variable's type, returned in a string.
Syntax
typeof someVar;
Notes
Returns either a primitive data type, undefined, or 'object'.
Example
var message = "Thank you for using SyntaxCenter!";
typeof message; //will return 'string'