Ad
  • Default User Avatar

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

  • Default User Avatar

    TypeError: Cannot read property 'forEach' of null at comp

    "At comp": it is an error in your code. Print the input so you can see what happens.

    PS: never say "it works on my IDE" because in your IDE you don't have all the real tests cases:-)

  • Default User Avatar

    Getting the following error:

    Passed: 44 Failed: 1 Errors: 1 Exit Code: 1

    TypeError: Cannot read property 'forEach' of null
    at comp
    at /home/codewarrior/index.js:42:19
    at /runner/frameworks/javascript/cw-2.js:152:11
    at Promise._execute
    at Promise._resolveFromExecutor
    at new Promise
    at Object.describe
    at /home/codewarrior/index.js:27:10
    at /home/codewarrior/index.js:85:5
    at Object.handleError

    My code does not have 42 lines, besides it works on my IDE. What could the issue be?