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.
TypeScript translation based on existing JavaScript version.
https://www.codewars.com/kata/5a95947f4a6b342636000173/train/javascript
When I try to submit it it gives error expected "Bunny" and my result shows " Bunny "
Oh god. It was really painfully. I sat with this problem for several hours(about 4-5).
As a result, the error was that fetch(url) should ALWAYS come immediately followed by ".then()".
You can't write
But I dont know why. May be it is related with a microtasks stack? If there is anyone who knows, please tell me the topics that I could read
Ok. Nice exercice for Christmas. I try to write a test for errors. It should throw an error if the given joke id does not exist.
This code doesn't work. I think, it get a promise and don't test the method.
How I can implement it ?
The kata's spec is very confusing: beaming people are supposed to be held in the
inTransit
properties. But then beaming 3 people should have them all beamed at once? Then what's the purpose ofinTransit
properties? They are supposed as a temporary storage, which means they shouldn't be tested (not to mention in reality it's not something that's actually needed).As mentioned below, poor kata design.
Hi, @richkotze!
Thanks for a nice kata.
But, what if typeof childten isn't a string?