Answers for "javascript largest of four numbers"

6

jsx return greatest number between two numbers

Math.max(5, 10);
Posted by: Guest on April-21-2020
0

javascript largest of four numbers

if(one>two)
  {
  var a = one;
  }
  else
  {
  var a = two;
  }

if(three>four)
  {
  var b = three;
  }
  else
  {
  var b = four;
  }

if(a>b)
  {
  alert("The greatest number is " + a)
  }
else if(b>a)
  {
  alert("The greatest number is " + b)
  }
}
Posted by: Guest on August-09-2021

Code answers related to "javascript largest of four numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language