JavaScript: How To Pass An Array To Math.max?
Math.max is a very handy function in JavaScript to quickly find maximum of given numbers. The function takes a variable no. of arguments which may range from one to as much as you like.
[sourcecode language=”javascript”]
Math.max(d1, d2, d3, … …