Ad
  • Custom User Avatar

    You are storing the results in global scope, so any preceding function calls will cause the previously unnecessary values to accumulate.

  • Default User Avatar

    You probably have invalid values in your return value? You can also use logging in all of the katas... Hope this helps you forward.

  • Custom User Avatar

    Your solution should be written inside the wordCounter function initially provided by the kata: is that what you did?

    var wordCounter = function(text) {
      // TODO - Add your implementation here
    };
    
  • Custom User Avatar

    Not sure. Which language are you using? And could you add backticks (`) before and after the test message itslf, just so I know exactly which part is being printed out?