Created
January 1, 2024 01:55
-
-
Save JidLaurence/a346067e553970060b62a97a5152165b to your computer and use it in GitHub Desktop.
Test 4
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 summarizeNumber() { | |
let i = 0; | |
let total = 0; | |
while (i < arguments.length) { | |
total += arguments[i]; | |
i++; | |
} | |
return total; | |
} | |
const result = summarizeNumber(5, 11, 19, 99); | |
console.log(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment