Primitive Data Types

The primitive data types fall into three categories :

  1. Integer Types
  2. Floating Point Types
  3. Truthy/Falsy (Boolean Type)

Floating Point Types

The floating-point types store numbers with decimal places as well as integer types. They are two types :

float
double

Character Type

The character type stores a single Unicode character.

char

Boolean Type

The boolean type stores a value that can be either true or false.

boolean

results matching ""

    No results matching ""