I need to find the highest number from 3 different numbers. The only thing I\'ve found is max() but you can only use 2 numbers.
Whats the best way?
In almost any language, one can use max twice:
Math.max(num1, Math.max(num2, num3))
As @CMS points out, JavaScript specifically allows an arbitrary number of parameters to Math.max:
Math.max(num1, num2, num3);