Ad
  • Custom User Avatar

    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, or unknown, even something more verbose, but I don't think that's so big an issue, I should unvalidate all those solutions for...

  • Custom User Avatar

    Hi! I didn't reject, just can't see your translation.

  • Custom User Avatar

    Hi!
    I've just accepted that.
    Thank you very much!

  • Custom User Avatar

    Yes, I did.
    Fixed it. Wrong fixation...
    Thank you!

  • Custom User Avatar

    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!

  • Custom User Avatar

    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?

  • Custom User Avatar

    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 value invested.
    Now I clone it for you, to modify it safely.

    Thank you again for letting me see this, and deal with this!

  • Custom User Avatar

    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!

  • Custom User Avatar

    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! ;)

  • Custom User Avatar
  • Custom User Avatar

    All right then! Issue resolved.

  • Custom User Avatar

    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! ;)

  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This was fun, thanks!

  • Loading more items...