How to find maximum and minimum values in array - JavaScript

Published --