Sign In
Sum of Odd Numbers
Beginner
Sum of Odd Numbers
Write a function called
sumOddNumbers
that takes an array of numbers and returns the sum of all the odd numbers in the array. The function should use a while loop to iterate over the array and sum up the odd numbers.
Click to go back
Click to go forward
Refresh preview
Console
Submit
Solution
00:00
Back to Exercises