結果 : find minimum and maximum element in an array javascript