I wondered the same thing, similarly to you I used parseInt in the divideBy function but then after submitting I noticed in the top solutions they did not do anything special in the divideBy function. I wonder if the Kata has changed to only allow ints since those solutions were submitted?
I wondered the same thing, similarly to you I used parseInt in the divideBy function but then after submitting I noticed in the top solutions they did not do anything special in the divideBy function. I wonder if the Kata has changed to only allow ints since those solutions were submitted?
Doesn't counting the positions of brackets make this more a compiler than an interpreter? :)