No problem. It's bad practise to modify inputs in a function. But it's also a bad idea to test without making a duplicate first.
Glad your problem was fixed.
Since the issue has been resolved, you should mark it as resolved. You can do that using the checkbox when replying to your comment.
I agree with this; money is always written with two decimal places, e.g. 2.70, never 2.7. One random test also expected '3', when it should have been expecting 3.00.
no, that's actually correct x)
.
It looks like someone edited the description to something very similar to what you posted.
No problem. It's bad practise to modify inputs in a function. But it's also a bad idea to test without making a duplicate first.
Glad your problem was fixed.
Since the issue has been resolved, you should mark it as resolved. You can do that using the checkbox when replying to your comment.
I am pretty sure the problem occurs because you modify the input string.
In any case, could you try again to see if the issue is resolved now?
Remove unnecessary characters, come on! ;-)
Thanks for your help - I have added more tests as requested.
Yes, I did.
Fixed it. Wrong fixation...
Thank you!
Thanks, have added further test cases
Fixed.
(actually description came from the Java kata which asked for a method,
to JS translation function is more "CodeWars-practice" )
Good spot! thanks :)
I agree with this; money is always written with two decimal places, e.g. 2.70, never 2.7. One random test also expected '3', when it should have been expecting 3.00.
Sorry, I changed the model solution but not the question. (Really is) fixed now.
Thank you, my mistake. I've fixed it now.
Loading more items...