Mega Code Archive

 
Categories / JavaScript Tutorial / Number Data Type
 

Primitive Types

JavaScript has five primitive types: Undefined, Null, Boolean, Number, and String. Each of the primitive types defines a range of values as well as literal representations of that type. To determine if a value is in the range of values for a particular type, JavaScript provides the typeof operator. This operator can be used to determine if a value represents a primitive type.