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 equality operator is a comparison operator in programming that checks if two values are equal. It returns true if the values are equal and false otherwise.
Related terms
Assignment Operator (=): Assigns a value to a variable.
Not Equal Operator (!=): Checks if two values are not equal.
Strict Equality Operator (===): Checks if two values are equal in both value and data type.