JavaScript
May 20, 2021 · Frontend Development
Understanding JavaScript’s Math.max: Edge Cases and Array Tricks
This article explains how JavaScript’s Math.max function works, covering typical usage, single‑argument behavior, the surprising -Infinity result when called without arguments, and practical techniques for finding maximum values in arrays, including handling empty arrays.
ArrayInfinityJavaScript
0 likes · 3 min read
