Last active
December 17, 2017 04:37
-
-
Save ds604/579eac52e7a79461cd36dd6204cab977 to your computer and use it in GitHub Desktop.
NXGebd
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 sumOf(...numbers: number[]): number { | |
var sum = 0 | |
for(let number of numbers){ | |
sum += number; | |
} | |
return sum | |
} | |
console.log(sumOf(42,597,12)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment