Ad
  • Custom User Avatar

    So I have solution that splits the list correctly. My front and back variables have the correct lists in my function. But the test keeps failing saying my front is equal to null. Should I be returning something? It seems like the way this is supposed to work is these variables change for the test because they're reference types...but that isn't working for some reason.

  • Custom User Avatar

    I see that a couple other people were asking about throwing an exception in JS. I understand WHEN to throw the exception, but I don't understand WHAT I need to throw to get this to pass. If I throw a string it fails, if I throw a new Error() the whole Kata errors out....not sure what you mean by 'exception'

  • Custom User Avatar

    awesome that worked! thanks for the help.

  • 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

    This is so easy. Just write a million case switch statement.

  • Custom User Avatar

    ahhhhh ok. thanks for the help!

  • Custom User Avatar

    This makes sense but in one of the examples -> alphabetWar("zzzzs"); there are 5 'combatants' so is the middle z on the right or left side?