Answers for "5.1.3. Boolean Expressions¶"

0

5.1.3. Boolean Expressions¶

/*We can also use == to see that true and "true" are not equal.*/

console.log(true == "true");

//false
Posted by: Guest on June-06-2021
0

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
Posted by: Guest on June-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language