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.
I consider it best practice to let all the text be in one object.
Also, it's usage is the same, you just have to use it as a "default value".
The key could be named better though, like
default
, orunknown
, even something more verbose, but I don't think that's so big an issue, I should unvalidate all those solutions for...Hi! I didn't reject, just can't see your translation.
Hi!
I've just accepted that.
Thank you very much!
Yes, I did.
Fixed it. Wrong fixation...
Thank you!
You're right.
Seeing the solutions page, I can see myself burning in Hell for not doing that.
drunkenDoodling
is preloaded for future solvers.Thank you!
Too. Few. Details. For. An issue. To. Be. Raised.
I mean c'maan dude... You didn't even had to read or type it.
It's more like a matter of taste. Why did you raise an issue?
Ahh, recursion.... It's okay, it'll work now.
Your solution modifies the argument array with
.shift()
, so my test function worked with the empty array you left for me, thus expecting the valueinvested
.Now I clone it for you, to modify it safely.
Thank you again for letting me see this, and deal with this!
In the kata editor it ain't always 100, and never were.
I am comparing your solutions to my own test function, which works there fine too.
Update: I have solved it in the trainer too, not a single 100 as expected value.
I just republished it, maybe that will solve this for you.
In the meantime, could you please post your solution here, to help my investigation? (spoilered ofc)
Thank you!
Having a few zero-demand kata won't hurt anyone, then again, codecademy's there for that.
But having JS's
variable naming convention
offended on this difficulty level isn't cool.Blind leading the blind...
If you're a beginner, and do not have a clue, Google it please! ;)
JS translation kumited.
All right then! Issue resolved.
You should mention in the description, that the two argument arrays use the same indexing for the same items. (Which isn't very lifelike, is it?)
It would be a bit more challenging to use objects in the arrays, thus we could identify items easier (via keys). Using arrays like this might even be considered as bad practice. Please think this through!
Also, I suggest you to add a few more test cases.
I didn't mean to offend you, it is a quite solid idea for a kata. Keep up the good work! ;)
nice!
This comment is hidden because it contains spoiler information about the solution
This was fun, thanks!
Loading more items...