You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-examples/js/Math/Get the highest number from...

6 lines
171 B
JavaScript

function highest_of_three(num1, num2, num3)
{
return Math.max(num1, num2, num3);
}
console.log(highest_of_three(-5, 4, 2));