5.1.3. Boolean Expressions¶ code example
Example 1: 5.1.3. Boolean Expressions¶
/*We can also use == to see that true and "true" are not equal.*/
console.log(true == "true");
//false
Example 2: 5.1.3. Boolean Expressions¶
/*A boolean expression is an expression that evaluates to either true
or false. The equality operator, ==, compares two values and returns
true or false depending on whether the values are equal.*/
console.log(5 == 5);
console.log(5 == 6);
//true
//false