Primitive Data Types

Learn about the different primitive data types.

Primitive data types

Every variable has both a name and a type. The type defines what kind of data can be stored in the variable. Typically, a language will have some built-in types, called primitive (or basic) types, to handle a single value.

Primitive types can be divided into two categories:

  • Boolean
  • Numeric

Get hands-on with 1200+ tech skills courses.