箭頭 函式的寫法:. function 拿掉; 並在參數後補上 => 符號,就完成囉。 data = [10, 20, 30]; total = 0; data.forEach((item)=>{ total += item; } ...
確定! 回上一頁