JavaScript 🙂
JavaScript Comparison and logical operators:
Comparison operators are used in logical statements to determine equality or difference between variables or values:
-
(==) ⟶ equal to
-
(===) ⟶ equal value and equal type
-
(!=) ⟶ not equal
-
(!==) ⟶ not equal value or not equal type
-
(>) ⟶ greater than
-
(<) ⟶ less than
-
(>=) ⟶ greater than or equal to
-
(<=) ⟶ less than or equal to
Logical operators are used to determine the logic between variables or values:
- (&&) ⟶ and
-
(  ) ⟶ or - (!) ⟶ not and
-
(  ) ⟶ or - (!) ⟶ not
Using For loop:

Using While loop:
