Ad
  • Custom User Avatar

    Thank you for your answer! This was really helpful! Trying to debug now.

    UPD. Just in case. It worked. All the tests passed. Thanks a lot!

  • Custom User Avatar

    That's most probably because you use eval, and it chokes on inputs like '-7715?5--484?00=-28?9?5' (JS parsing rules treat -- as post-decrement). Does this input work for you locally?

    It's a bug in your solution, and not a kata issue.

  • Custom User Avatar

    Hi! I'm trying to solve this kata using JavaScript. I've passed Example Tests and Random Tests. But I cannot pass More Tests. It returns the right value, but I get the following error:

    "SyntaxError: Invalid left-hand side expression in postfix operation
    at solveExpression (test.js:35:52)
    at Context. (test.js:81:56)
    at process.processImmediate (node:internal/timers:471:21)"

    Locally it works pretty well with the same inputs. Returns the right value and doesn't log any errors. I'm a newby, and I'd appreciate any advice.