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.


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

Live Demo

         var a = 10;
         var b = 20;

         document.write("(a < b) => ");
         result = (a < b);
Published on 19-Jan-2018 06:22:46