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.
TIL about repeat method! Thank you:)
Note: If the input string contains no digits, this solution will return a 0, which might be unexpected behavior. By contrast,
parseInt()
and unary+
coercion will result inNaN
.Big brain :D
This comment is hidden because it contains spoiler information about the solution
Not work for this case:ThE_wRonG-CaSe
It's also 10 times faster than your solution. (tested them side by side)
I came up with a similar solution but did not put the second arguments in quotes. Is there practical difference?
Love it, one of the many times I learn something new here!
good job
impressive)
I'd say they do the same thing but some browsers don't run like it is**
very nice, equal
How so? It repeats the string n times.
I love this
I found this to be the smartest solution!
Loading more items...