Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I just happened to see some examples of how this function worked yesterday otherwise my code would've been a lot longer im sure 😅
Thank you for this! took my understanding of parseInt a step further. Awesome.
easiest way to do it
this parseInt odd behavior was probably implemented in such way only because of this Kata
work when the string starts with numeric
Thanks for the solution. I have learnt something new (can simply pass 'inputString' into the argument of parseInt without a reference to the index of the age number). Thanks so much!!
Ohh, makes sense. Thanks!
This comment is hidden because it contains spoiler information about the solution
Can somebody explain to me how this works? I'm not sure how the parseInt method could
distinguish the string number itself.
case closed!
Ruby translation submitted, if you want to approve it or the other waiting for your green light; cheers :)
I say we can close this issue as well, right?
You could close the issue by now, considering it has nothing to do with the testing code or other parts in control of the author.
Also, I would not round using the
.toFixed()
method, there are much better alternatives.It changes a string into either a number or
NaN
; shorthand forparseFloat()
, if you wish.PHP Translation Kumited - please accept :D
Loading more items...