Ad
  • Custom User Avatar

    The format of your output should be an array (for you code above [i, e]). I understood this only by getting the wild guess. I think this is an issue of the description of the task.

  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    I see. Thanks.

  • Custom User Avatar

    It's not random, all the ones your code fail have something in common, it's your job to debug your code, not ours. I already gave you some hints about it. Good luck.

    Testing "sayHighHaveCompany", expecting: "say High Have Company"
    Expected: "say High Have Company", instead got: "say  HighHave Company
                                                        ^     ^
                                                        |     no space here
                                                        two spaces here
    

    Note: it's not the last word in this case that's missing the space

  • Custom User Avatar

    It fails because it doesn't braeak the last word. but it seems random. On other similar cases doesn't fail.

    Expected: "take Next Look Point Number", instead got: "take Next Look PointNumber"

    but other:

    Testing "longNewBigFeelLook", expecting: "long New Big Feel Look" it pass.

  • Custom User Avatar

    what does your code return for those that fail?

  • Custom User Avatar

    Testing "bigPointCompany", expecting: "big Point Company" Passed

    Testing "lastOldFirst", expecting: "last Old First" Passed

    Testing "lookHaveAskPoint", expecting: "look Have Ask Point" Passed

    Testing "thinkFewFact", expecting: "think Few Fact" Didn't pass

    Expected: "think Few Fact", instead got: "think FewFact"

    Testing "useHave", expecting: "use Have" Passed

    Testing "bigNounsProblemRight", expecting: "big Nouns Problem Right" Passed

    I don't see any pattern here, It's just random

  • Custom User Avatar

    Not a kata issue, that's a problem with your code, look for a pattern in the input of those tests your code is failing. See where your code is adding those spaces.

  • Custom User Avatar

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

  • Custom User Avatar

    Your function should return an array in javascript.

  • Custom User Avatar

    Please don't post solutions here, why don't you ask under that solution in Solutions instead?

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Me neither. I keep passing the 3 sample tests, but none of the submission tests.