programming-examples/js/Math/Get the highest number from three different numbers.js
2019-11-15 12:59:38 +01:00

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));