Ad
  • Custom User Avatar

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

  • Custom User Avatar

    The idea to use RegEx for this is broke my mind. If someone know how it possible, please tell me (seriously :)

    There is three things that need your attention in this Kata. 1) You get a string 2) If you split this string, you also get strings but in array 3) JavaScript is a loosely typed and dynamic language but it has methods for pointing type of data (it is helpful with compare).
    You can find tones of good information about JS in MDN Web Docs

  • Custom User Avatar

    I also thought about this
    I came to the conclusion that this is a number that is lacking to 9.
    For example 1 = 8 (1 + 8 = 9), 4 = 5 (4 + 5 = 9), 7 = 2 (7 + 2 = 9) ...
    I agree that the description is a little confusing