Ad
  • Custom User Avatar

    Your solution only accounts for the first 2 functions in the array, it could be more. Additionally, if the array of functions has 0 or 1 items, then it will throw an exception.

  • Custom User Avatar

    One of the sample tests:

    assert.strictEqual(add(2, 11), 13);
    

    How you call your function in VSCode:

    add('122', '81'); // 1103
    
  • Custom User Avatar

    You were just told not to post solution code in the discourse without using the Spoiler flag.

    I solved it correctly

    Well, apparently not. It's a weird statement to make. If you need help, you can drop by the Discord and ask for it.

  • Custom User Avatar

    Please mark your post as having spoiler content next time. Your function should return the result instead of printing it to the console.

  • Custom User Avatar

    Almost every kata if not actually every kata on CodeWars has random tests. Pointing that out in the description seems pointless. Cheers!