Comparison Operators part 1

Comparison Operators



Comparison operators are used in logical statements to determine equality or difference between variables or values. They return true or false

The equal to (==) operator checks whether the operands' values are equal.
var num = 10;
// num == 8 will return false
Try It Yourself

You can check all types of data; comparison operators always return true or false.
The comparison operators return:
Select all that apply

wrong
right
false
true

Comments

Popular posts from this blog

Introducing object part 3

Comparison Operators part 2

Module 2