# JavaScript Comparison and Logical Operators
● Comparison Operators
Comparison operators are used in logical statements to determine equality or difference between variables or values. Given that x = 5, the table below explains the comparison operators.
https://www.w3schools.com/js/js_comparisons.asp |
● Logical Operators
Logical operators are used to determine the logic between variables or values.
Given that x =6 and y =3, the table below explains the logical operators.
Given that x =6 and y =3, the table below explains the logical operators.
https://www.w3schools.com/js/js_comparisons.asp |
● Conditional ( Ternary ) Operator
JavaScript also contains a conditional operator that assigns a value to a variable based on some condition.
No comments:
Post a Comment