Ad
  • Custom User Avatar

    Either copy your code and hit Reset button at the bottom, or simply click Attempt. I don't see how it wouldn't work, I ran it myself and it passed.

  • Default User Avatar

    No, i never touch the original test :/

  • Custom User Avatar

    But your current code passes all tests. Did you modify sample tests for this error to happen?

  • Default User Avatar

    yes also saw and i changed again. so now the name of the function is evenOrOdd.

    and the error:

    ReferenceError: even_or_odd is not defined
    at /home/codewarrior/index.js:12:10
    at /home/codewarrior/index.js:16:5
    at Object.handleError

    so i think this task is not difficult but i got some error :)

  • Custom User Avatar

    Your solution is printing the results instead of returning them. In a Codewars kata, functions should use return statements to output results, not print statements. Here, the function even_or_odd should return "Even" or "Odd", rather than printing these values to the console.

  • Custom User Avatar

    I have the solution, but the test, say it's wrong :/, who can help me ?