Ad
  • Custom User Avatar

    As I said, your .reduce is not working. JS is weird when it comes to implicit bool -> int conversion, and it's not happenning here.

  • Custom User Avatar

    You should return a number, and I'm not sure whether your .reduce is working correctly (and I don't care enough to look into it).

    And next time give at least some minimum information concerning your problem except "my code is not working".