These are chat archives for Codewars/codewars.com/kata-solving-help

18th
Sep 2016
Ted Maloney
@ted
Sep 18 2016 00:29 UTC
Could someone give me a hand with why my solution isn't working on https://www.codewars.com/kata/binary-multiple-of-3/train/javascript
var multipleOf3Regex = {
    test: function(binary) {
      return multiple = (binary.toString().split(" ").join("") == binary.toString() && parseInt(binary.toString(), 2) % 3 == 0) ? true : false
    }
}
damjan
@dpolugic
Sep 18 2016 17:46 UTC
@tedmaloney There are test cases to make sure that your answer is actually a regex. Of course, there's always a way...