Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
A data type is a classification that specifies the type of value that a variable can hold. It determines the operations that can be performed on the variable, such as arithmetic operations or string manipulation.
Reference data refers to complex datatypes that are composed of multiple primitive or reference datatypes. Examples include arrays, objects, and strings.
A variable is a named storage location in memory that holds a value. It is associated with a specific datatype which determines the kind of values it can store and the operations that can be performed on it.