Ad
  • Custom User Avatar

    I've marked your OP as having spoiler content, you could have done it too after posting it.

  • Default User Avatar

    Usually indicative of simply not running the failing tests locally, not running the failing tests will obviously pass all tests. It might not be, but when you phrase it this way that's the most likely reason from other people's perspective.
    If you have a particular test case and you share the code you're using (with your post marked as spoiler!) then you'd be allowing others to observe the mystery for themselves.
    If the expression you show is the whole solution then that is definitely not sufficient.
    Take for example 10 which can be written as 1+2+3+4, your expression becomes

    10 % 2 !== 0 || 10 % 3 === 0
    0 !==0 || 1 === 0
    false || false
    false
    

    10 is the value in the kata description