SpinSpire logo

Data Types

Javascript is a loosly typed language and, like many languages, contains primitive and non-primitive types.

Primitives

In JavaScript primitives are defined as "data that is not on object and has no methods". The values themselves cannot have methods and are therefore immutable. They can only be altered by re-assignment.

Non-Primitives

Arrays and Objects will be discussed in more detail in another lesson (link tbd).


References:
  1. Javascript data types