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.
Oh, you're right. I thought that was part of your code, because I saw you used a map :p This is actually an issue then.
Edit: node 8 disabled.
Did you select node v18 at the top? If that doesn't fix it, maybe you modified sample tests?
Either way, you should include the actual error message, not just the line that caused the error. If I run your code with node 8, I get "SyntaxError: Unexpected token ?", which makes sense, because
??
didn't exist in earlier versions.You are welcome! Part 2 just got approved. https://www.codewars.com/kata/665bf5790be3c249ffb9422b