CJCoding With Joseph

forEach: Sum of Ages

Use forEach to add up all the ages in the array and print the total.

Expected output:

75

Expected Output:

75
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.