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
The assignment operator '=' is used to store a value into a variable. It assigns the value on the right side of the operator to the variable on the left side.
Related terms
Operator: A symbol or keyword used in programming languages to perform operations on values.
Expression: A combination of variables, operators, and values that evaluates to a single value.
Statement: A complete instruction in a programming language that performs some action when executed.