Ad
  • Default User Avatar

    Not a kata issue~~

  • Custom User Avatar

    Then don't do it. The object is to develop an algorithm on your own without the use of what is commonly available. If you don't like, there are plenty of others out there that can entertain your fancy. No sense in being a baby and crying over it.

  • Default User Avatar

    read the directions more carefully. I made the same mistake.

  • Default User Avatar

    on the good side you have 1 hobbit worth 1, and 1 eagle worth 4, for a total of 5
    on the evil side you have 1 troll worth 5.
    So both armies are worth 5

  • Default User Avatar

    The first test to fail will be the last test it will run so it is hard to say. I recomend you use console.log to print the inputs to the function to see for yourself what is being tested

    console.log(good);
    console.log(evil);
    
  • Custom User Avatar

    If you read the last line of the description: "NOTE: reverse/reverse! have been disabled for String/Array and reverse() for JS. If you are chaining join after a reverse, you will get that error

  • Custom User Avatar

    Just tested the code and works fine to me: I fear you are creating an infinite loop or there is anyway something wrong with your code.