# What is Less than Operator (<) in JavaScript?

JavascriptWeb DevelopmentFront End Technology

The less than operator (<) checks if the value of the left operand is less than the value of the right operand, if yes, then the condition becomes true.

## Example

You can try to run the following code to learn how to work with less than operator (<)  in JavaScript

Live Demo

<html>
<body>
<script>
var a = 10;
var b = 20;

document.write("(a < b) => ");
result = (a < b);
document.write(result);
</script>
</body>
</html>
Updated on 08-Jan-2020 08:17:29