In the instructions it was said not to worry about non-integer numbers.
This comment is hidden because it contains spoiler information about the solution
Since Number.toString() will never return a string with leading 0's, you can just use the regex /0+(?=1)/ and then you don't have to subtract 1 at the end of the line.
I think it's not needed too
Yeah the 1 + recursion is clever
Interesting, didn't know recursive functions could count in that way.
Except % operator means "division remainder", not "divisible by", so your point makes no sense.
hadn't realised you could use python with out colons
Yeah it's probably that regex may be a bit "cheaty" at this level, however regex is in the description of this kata, so....
also it's the most obvious answer.
Почему я до этого не догадался)
Magnific solution. Loved it!
Maybe you should also consider using other ES6 features then just Template Literals. Maybe try to use 'const' instead of declaring a global variable.
Am starting to realize, I guess i should revisit some of my high school math lessons