Prev Demo
Less Than Operator With Greater Value On Left Operand And Lesser Value On Right Operand
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Less than operator (left operand value greater than right operand)</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 = 6; var c = (a < b); document.getElementById("myId").innerHTML = c; </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output