Sign In
Curriculum
Sum of Odd Numbers
Mark as Completed
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
Previous Lesson
Next Lesson