Written by the Fiveable Content Team โข Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated August 2025
Definition
The ! operator, also known as the NOT operator, is a unary operator that negates the value of a boolean expression. It returns true if the expression is false, and false if the expression is true.