Ad
  • Default User Avatar

    I'll be honest I did not expect that to work! I didn't think it'd show the console output. Thanks!

  • Default User Avatar

    Print input.

  • Default User Avatar

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

  • Default User Avatar

    Not fixed as far as I can tell.

  • Custom User Avatar

    Make sure you're closing you curly braces and parentheses right. AFAIK the js tests are working fine.

  • Default User Avatar

    Something seems to be not working right with the interpreter. My code is 10 lines long (a for loop with an if inside) but when I run the sample test it generates this stack trace:
    /home/codewarrior/index.js:22
    })})f;
    ^

    SyntaxError: Unexpected identifier
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at [eval]:1:1

    I have no idea where it's getting "})})f" from. What the heck is going on?