You’ve used it, you know it. Given a series of numbers, it returns you the biggest one. Simple. Easy. Definitely not blog post worthy.
Syntax
Math.max([value1[, value2[, ...]]])
Usage
Thank You
That’s it for this week’s blog post, have a good day everyone…!
Spooky Stuff
Oh… You’re still here?
Huh? What happens if you pass some weird stuff to Math.max()? … oh, I mean… we could try some stuff:
I was going to try and explain why this happens, but, I just can’t. I have no idea. So I’m just going to let this serve as a reminder that JavaScript is pretty wild.