1. Home
  2. Javascript
  3. Math max
#javascript#math

Returns the largest number from the supplied values.

console.log(Math.max(1, 23, -2, 2));
copy
Full Javascript cheatsheet
Sitemap Git repository