Ad
  • Custom User Avatar

    You need to return the value instead of printing it. Returning a value allows it to be checked for equality whilst printing it just outputs it to the console. "Undefined" is the default value when nothing is returned.

    All Katas on this website work like this.

  • Default User Avatar

    'Expected: no one likes this, instead got: undefined' drives me mad. Tried everything. Putting the response in var didn't help. Chcecking if names.length is not only '==0' but also undefined, '<1' and simply '!names' didn't help too. Is the test that broken?