Created
August 2, 2017 13:43
-
-
Save debugmodedotnet/9ed3e25f53296fcfc1c1b4d8feb3d718 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
function add(...theArgs){ | |
var result = 0; | |
for(let i=0;i<theArgs.length;i++){ | |
result = result + theArgs[i]; | |
} | |
return result; | |
} | |
var r = add(6,9,3,2); | |
console.log(r); | |
var t = add(7,56,9); | |
console.log(t); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment