ComparisonOperator-1

 

Comparison Operator allow you to compare two values and return true or false based on statement. In this example (2 == 12) which is not equal, So it will return false See the code snippet:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> document.getElementById("sample").innerHTML = 2 == 12; </script> </body> </html>
Output