docs:programming:javascript:primitive_data_types

Primitive Data Types

JavaScript has five primitive data types:

  • Undefined
  • Null
  • Boolean
  • Number
  • String

A Boolean is a logical entity that consists of either a true or a false value. An example of one is:

var BooleanValue = true;

A Number is a set of numerical digits that represent a number. Through this tutorial, we'll only use base-10 numbers. An example:

var NumericalValue = 354;

A String is a set of zero or more characters. An example:

var StringValue = “This is a String”;

  • docs/programming/javascript/primitive_data_types.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1