"It is not of the essence of mathematics to be conversant with the ideas of number and quantity."
-
George Boole
good coding!
next
keep coding on this level
A boolean value is either true
or false
.
The special values true
and false
are produced by comparisons like <
, >
, or by checking if two values are equal with the double equals operator ==
.
Log two more true
expressions and three more false
ones.
transmission
=
vs ==
The =
operator assigns the value on the right to the variable on the left.
variable = value
The ==
operator produces true or false based on whether the left side is equal to the right side.
value == value
x
log(1 < 2)
log(2 + 2 == 4)
log(true)
log(false)