cara mengulang dan menambahkan nomor fuction untuk javascript
//The ... is the Rest parameter
function sum(...numbers) {
return numbers.reduce((total, individualNum) => total + individualNum)
}
// OR
function sum(...numbers) {
return numbers.reduce(function (total, individualNum) {
return total + individualNum
})
}
Splendid Squirrel