Codewars, Sum of Odd Cubed Numbers, Javascript Solution

Lesson Summary

In this challenge we are asked to create a javascript function which takes in an array and checks first if there are any non numbers in the array, and if so returning undefined. After checking this and making sure we have all numbers we then find the odd numbers and cube them, after that we add all those cubed numbers and return the sum of them in a variable(total).

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required