Ad
  • Custom User Avatar

    Sorted! had to return the recursive call, a bit smarter now :D.. Cheers guys :)..

  • Custom User Avatar

    yep I guess I'm doing some basic mistake that I haven't figured out yet, but got some hints from you.. let me think about it a bit longer, problem must be on my side as no one else reporting this issue.. Thank you both, I'll confirm once solved :D.

  • Custom User Avatar

    Thank you for reply.
    Nah, I have this inside my code..

        console.log(result);
        return result;
    

    So it's returning as well..

  • Custom User Avatar

    What am I doing wrong? When I console.log the result is correct, but the test response is undefined :-/. Thank you..

    Time: 941ms Passed: 0 Failed: 4 Exit Code: 1
    Test Results:
    Basic tests
    Log
    [ 6, 7 ]
    Expected: [6, 7], instead got: undefined
    Log
    [ 0, 1 ]
    Expected: [0, 1], instead got: undefined
    Log
    [ 0, 1 ]
    Expected: [0, 1], instead got: undefined
    Log
    [ 2, 2 ]
    Expected: [2, 2], instead got: undefined
    Completed in 5ms
    STDERR
    Unhandled rejection TestError: Expected: [6, 7], instead got: undefined