Ad
  • Custom User Avatar

    Closing.

  • Custom User Avatar
  • Custom User Avatar
  • Default User Avatar

    This is what 8kyu should be.

  • Custom User Avatar

    Your code is not exactly correct, it is missing some closing braces.

  • Custom User Avatar

    I'm getting the following error message even though my code is correct.

    STDERR:
    /workspace/node/test.js:22

    SyntaxError: Unexpected end of input
    at Object.compileFunction (node:vm:360:18)
    at wrapSafe (node:internal/modules/cjs/loader:1088:15)
    at Module._compile (node:internal/modules/cjs/loader:1123:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at ModuleWrap. (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15)
    at async formattedImport (/workspace/node/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/nodejs/esm-utils.js:9:14)
    at async exports.requireOrImport (/workspace/node/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/nodejs/esm-utils.js:42:28)
    at async exports.loadFilesAsync (/workspace/node/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/nodejs/esm-utils.js:100:20)
    at async singleRun (/workspace/node/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async exports.handler

    (/workspace/node/node_modules/.pnpm/mocha@10.2.0/node_modules/mocha/lib/cli/run.js:370:5)
    
  • Custom User Avatar
  • Custom User Avatar

    The Issue label is for provable kata issues. Please use the Question label when asking for help and code formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.

    Regarding your attempted solution, see https://docs.codewars.com/training/training-example#writing-a-solution.

  • Default User Avatar

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

  • Custom User Avatar

    TS: function name should use camelCase

  • Default User Avatar

    You have right. When I try it in that way, everything was right. I didn't now that the name of the function is also important. Thank you for your answer!

  • Custom User Avatar

    maybe the problem is that you have to put your solution in a funtion with the name "filter_list".

    function filter_list(l) {
      // your solution here
    }
    
  • Default User Avatar

    Hello!
    In te VS I'm getting good results, but here i'm getting this message:
    Fixed tests
    ReferenceError: filter_list is not defined
    at Context. (test.js:15:12)
    at process.processImmediate (node:internal/timers:471:21)
    Random tests
    ReferenceError: filter_list is not defined
    at Context. (test.js:37:14)
    at process.processImmediate (node:internal/timers:471:21)

    Could someone explain me what is going on?
    
    Language is JS.
    
  • Default User Avatar

    OMG that's the first exercise I do here and I've been like 30 minutes looking at the screen thinking why it wasn't working. Thank you!

  • Custom User Avatar

    I meant read these docs: https://docs.codewars.com/training/troubleshooting#post-discourse

    As for the link you asked, try this one

  • Loading more items...