Ad
  • Custom User Avatar

    I want to say it used to say "positive integers," which is why I said that in my comment? But it was way too long ago to know for sure. I was aware that 2 floats wouldn't work, but the code has to get longer to validate for those, so it's very likely I just tried with what I had and when it passed, went with it cuz it's prettier.

  • Custom User Avatar

    The inputs "should both be numbers that are above zero". That means integers or floats afaik. Your solution doesn't work if both numbers are floats.

    Perhaps the test cases should be extended or the description should be changed accordingly.

    Nice trick with the + to convert toFixed's string output!