programming-examples/js/Math/Get the highest number from three different numbers.js

6 lines
171 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
function highest_of_three(num1, num2, num3)
{
return Math.max(num1, num2, num3);
}
console.log(highest_of_three(-5, 4, 2));