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