Last active
December 20, 2018 23:57
-
-
Save Billmike/2823a8d304eb95c5f4828f07e33e01c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addAllNumers = (…args) => { | |
let result = 0; | |
for (let i = 0; i < args.length; i += 1) { | |
result += args[i]; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment