Created
August 2, 2017 13:43
-
-
Save debugmodedotnet/84260d9153879e2f2d64f356852c509d 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(){ | |
var result = 0; | |
for(let i=0;i<arguments.length;i++){ | |
result = result + arguments[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