You can declare a variable before calling forEach() and set the value inside the loop; let array = [1, 2, 3, 4, 5]; let max = 0; array.
確定! 回上一頁