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>