1. Home
  2. Javascript
  3. Math max

Returns the largest number from the supplied values.

#javascript#math
console.log(Math.max(1, 23, -2, 2));
copy
Full Javascript cheatsheet