掌握20个JS技巧1:找出数组中总和,最大值,最小值<pre<codeconstarray5,4,7,8,9,2;console.log(&39;总和&39;,array.reduce((a,b)>ab));//35console.log(&39;最大值&39;,