Ad
  • Custom User Avatar

    Liked it.
    Passed the final attempt with all the cases, but the sample test returns an error:
    /home/codewarrior/node/test.js:18
    }
    ^

  • Custom User Avatar

    True. My bad, thank you.

  • Custom User Avatar

    Returns what's needed, everything is correct. But there are some inbetween tests where 'undefined' is expected, and my code returns 0.
    Language: JS.