It checks whether the value of two operands are equal or not. If the value is equal it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 2 == 3
It checks whether the value of two operands are equal or not and also whether both the operands are of same datatype or not. If the value is equal and the operands
are of same datatype then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 2 === "2"
It checks whether the value of two operands are equal or not. If the value is not equal then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code
2 != "2"
It checks whether the value of two operands are equal or not and also whether both the operands are of same datatype or not. If the value is equal and the operands
are not of same datatype then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 2 !== "2"
It checks whether the value of left operand is greater than the value of right operand or not. If the
value of the left operand is greater than teh right operand then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 3 > 2
It checks whether the value of left operand is greater than or equal to the value of right operand or not. If the
value of the left operand is greater than or equal to right operand then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 3 >= 3
It checks whether the value of left operand is less than the value of right operand or not. If the
value of the left operand is less than the right operand then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 4 < 2
It checks whether the value of left operand is greater than or equal to the value of right operand or not. If the
value of the left operand is greater than or equal to right operand then it will return true
otherwise it will return false
.
Try it by checking the following numbers in the code 4<=4