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);
Updated on 08-Jan-2020 08:17:29