Discussion on: Daily Challenge #81 - Even or Odd

aminnairi profile image

I just checked on Codewars the challenge, and the template for the JavaScript language is the following:

function evenOrOdd(str) {


and the tests are

// node 8.x.x

Test.assertEquals(evenOrOdd('12'), 'Even is greater than Odd');
Test.assertEquals(evenOrOdd('123'), 'Odd is greater than Even');
Test.assertEquals(evenOrOdd('112'), 'Even and Odd are the same');

If it can help you understand a little bit more the challenge (yes, the instructions in this article were confusing).