ComparisonOperator-2

 

Comparing two values with greater than operator (10 > 12 ) which 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 = 10 > 12; </script> </body> </html>
Output