Codewars - EVEN or ODD - Javascript

Опубликовано: 28 Ноябрь 2020
на канале: The Coding Odyssey
469
7

In this challenge we solve another coding challenge from Codewars.com called Even or Odd - Which is greater?

Given a string of digits confirm whether the sum of all the individual even digits are greater than the sum of all the indiviudal odd digits. Always a string of numbers will be given.

If the sum of even numbers is greater than the odd numbers return: "Even is greater than Odd"

If the sum of odd numbers is greater than the sum of even numbers return: "Odd is greater than Even"

If the total of both even and odd numbers are identical return: "Even and Odd are the same"

Here's the link to the challenge:

https://www.codewars.com/kata/57f7b82...

#codewars #codewarseasy #evenorodd #codewarsevenorodd #codewars challenges