Answers for "switch for comparing greater value"

0

switch for comparing greater value

var scrollleft = 1000;
switch (true)
{
    case (scrollleft > 1000):
      alert('gt');
      break;
    case (scrollleft <= 1000):
      alert('lt');
      break; 
}
Posted by: Guest on September-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language