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.
test.ts:2:30 - error TS2306: File '/workspace/default/solution.ts' is not a module.
what's the matter there ?
Best way
I wasn't having it lol
Kata successfully submited!
Azassssu!!! (Japanese slang for 'arigato gozaimasu');
Nobody here can see your code. I've changed the tests to properly compare the actual/expected values, so you should be able to reset the trainer and get useful feedback on test failure.
This comment is hidden because it contains spoiler information about the solution
This is what I'm doing! Still, it's returning errors.... probably (hopefully!!) just a typo, since I don't want to lose this kata.
For some reason I misread your post and thought you were using Swift. I've edited the response for JS.
This looks good in swift. No such thing in the JS-environment I'm using. Would that be the name of the function in my case?
Always look to the sample tests. For example, the first test for JS is
and the right hand side of the equality statement is what you should be returning: namely, the string as in the problem description.
I don't see what value I should return with that function (JavaScript). The string as in the examples? Or the calculated sum?
Pretty confusing.
Code works perfectly in my sandbox.