6 lines
171 B
JavaScript
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));
|