How do you find min and max value in an array

Posted by Jennifer | Updated on

You can use Math.min and Math.max methods on array variables to find the minimum and maximum elements within an array. Let’s create two functions to find the min and max value with in an array,


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers