Discuss / JavaScript / acculumate the erst argument

acculumate the erst argument

Topic source

廖i雪

#1 Created at ... [Delete] [Delete and Lock User]

function sum(...rest) { let result = 0; for (var i in rest) { result += rest[i]; } return result; }


  • 1

Reply