Ad
  • Custom User Avatar

    Fixed

  • Custom User Avatar

    The issue is not related to Babel or "use strict" (test won't even run in strict mode).
    Testing the solution code by checkCode(arguments.callee.toString()); causes false positives like above because it's testing the solution and some internal setup code inserted by Codewars to run the test. The solution should be validated by reading /home/codewarrior/solution.txt. See How To: Read the user's solution within your test.


    'global was reassigned' is from throw new Error('global was reassigned') I added (#298) for #259.

  • Custom User Avatar

    Hi, I have just updated the description, please re-read as you were probably misunderstanding the task slightly.

    Let me know if you're still having problems. Thanks!

  • Default User Avatar

    Did you figure out where you went wrong? I'm having a similar issue...

  • Custom User Avatar

    Hi. I have just updated the tests so the random inputs are shown if your answer is wrong. I put in your solution and ran the tests, and tried (by hand) one of the random ones you got wrong, and it agreed with my solution. I think you must have misunderstood the task slightly- apologies but I haven't had time to look through your logic- maybe try again now the tests are more descriptive and let me know if you still have issues?

    Thanks

  • Custom User Avatar

    Hi, please could you write your solution in a comment here (and mark as spoiler) or send it to me in a private message? Thanks