6 kyu

Chain Evaluation

1,757 of 1,815myTerminal
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • FArekkusu Avatar

    No random tests.

  • B1ts Avatar

    The description implies there is method chaining going on, but none of that is needed to solve this kata.

    Implementing multiple chains and keeping count of the sum would be great next steps for harder version of this kata.

  • Sch3lp Avatar

    This comment has been hidden.

  • cgeorg Avatar

    This kata encourages modifying the prototype of a built-in object, which is very much not a javascript best practice. While I like the concept, I would have preferred that it start with some sort of chain() call which would return a wrapped object that included the 5 methods plus in implementation of valueOf for conversion back to a number.

    • benstr Avatar

      WTF, well now I know. Do people modify the built-in objects in Production? I guess I will start looking but this wasted a crap load of my time. This Kata is about chaining methods not figuring out what (0).blah is or the ramifications of modifying a built-in.

  • oldccoder Avatar

    I am trying to "Submit Final" but the button does not change despite the answer being correct.

    • myTerminal Avatar

      Seems that you managed to submit the code.

    • oldccoder Avatar

      Yes, I got a reply that the issue was fixed in my email. It seems the problem was also present on another kata I finished after this one, so I realized it was a website issue. Thanks for checking on this though.

  • wthit56 Avatar

    Very nice and straightforward idea. Good job. You could add a note about "Order of Operations". I know for this kata it is ignored, but in case people know about this, they could think this exercise is super hard. Also, you could add some randomly-generated tests, or order the tests randomly to give variety and really stress-test the implementation.