1. Home
  2. ›
  3. Javascript
  4. ›
  5. Math max

Returns the largest number from the supplied values.

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