Today I completed the “Odd or even?” kata on Codewars! I began with a for loop to run through the contents of a provided array and sum their total. Then I used the modulo operator to check if the total value was even, and return the corresponding value. Here is the final code!

Bug Zero Icon

OUR NEWSLETTER