Codewars, Sum of Odd Cubed Numbers, Javascript Solution

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=KGSu2L-rlR4



Duration: 5:51
645 views
6


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).




Other Videos By We Will Code


2017-07-20Learn Javascript, this, Javascript and the DOM, Codecademy, this() method
2017-07-20Learn Javascript, toggleClass, Javascript and the DOM, Code
2017-07-19Learn Javascript, toggle, Javascript and the DOM, Codecademy
2017-07-19Learn Javascript, show, Javascript and the DOM, Codecademy
2017-07-19Learn Javascript, click, Javascript and the DOM, Codecademy
2017-07-18Learn Javascript, fadeIn, Javascript and the DOM, Codecademy, fadeIn()
2017-07-18Learn Javascript, hide, Javascript and the DOM, Codecademy
2017-07-17Learn Javascript, jQuery Selectors, Javascript and the DOM, Codecademy
2017-07-16Learn Javascript, jQuery, Javascript and the DOM, Codecademy
2017-07-14Learn Javascript, Document Object Model, Javascript and the DOM
2017-07-12Codewars, Sum of Odd Cubed Numbers, Javascript Solution
2017-07-12Learn Javascript, Javascript and the DOM, Linking Javascript, Codecademy
2017-07-12Learn Javascript, Javascript and the DOM, Javascript with HTML and CSS, Codecademy
2017-07-12Learn Javascript, Loops, Review Loops, Codecademy
2017-07-12Learn Javascript, Loops, while Loops, Codecademy
2017-07-07Learn Javascript, Loops, for loops inside of for loops, Codecademy
2017-07-06Learn Javascript 2017, Loops, for loop backwards, Codecademy
2017-07-05Learn Javascript 2017, Loops, for loops, Codecademy
2017-07-05Learn Javascript 2017, Loops, Looping by hand, Codecademy
2017-07-03Learn Javascript 2017, Loops Introduction, Codecademy
2017-07-03Learn Javascript 2017, Arrays, Review Arrays



Tags:
codewars
javascript challenge
javascript algorithm
algorithm challenges
coding challenge