Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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!
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.
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.