Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Boolean
ADD COMMENT
Topic
Name
8+2 =