By now you probably know what a boolean value is and you may have heard about boolean algebra or George Boole. Together, they are the bread and butter that makes programming work. We can compare two or more values, utilize a boolean for situations with only two states, or combine values using boolean algebra in order to control our code.
false value. For example:
(10 < 6) // false.
Strongly typed languages such as C++ and Java have a boolean primitive type. JS also has a boolean type but it is loosely (or dynamically) typed, so it can take on other values as well.
Later in our programming adventure, we will even create our own functions that return a boolean value in order to state if something happened or not.
You may have seen boolean logic for logic gates. This same process can be applied to boolean values in code.
!(x && y)
!(x || y)