Last active
January 21, 2022 02:11
-
-
Save johnakhilomen/ff525b08a199046eb8394da8a7adc624 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| let calculateSum = function (numbers) { | |
| let sum = 0; | |
| for (let i = 0; i < numbers.length; i++) { | |
| sum += numbers[i]; | |
| } | |
| return sum; | |
| } | |
| const sum = calculateSum([45,89,32,90,120]); | |
| console.log(sum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment