LogicalOperator-1

 

Logical Operator <, > evaluates the expression and return true or false.

 
 
 
<!DOCTYPE html> <html> <head> </head> <body> <p id="sample"></p> <script> var x = 9; var y = 3; document.getElementById("sample").innerHTML = (x < 10 && y > 1) + "<br>" + (x < 10 && y < 1); </script> </body> </html>
Output