Prev Demo
Greater Than Operator With Lesser Value On Left Operand Value And Greater Value On Right Operand
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Greater than with left operand vcalue lesser than right operand value.</h1> <b>Assigning left operand value lesser than the right operand value, the result gives</b> <p id="myId"></p> <script> var a = 5; var b = 10; var c = (a > b); document.getElementById("myId").innerHTML = c; </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output