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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes, it creates. But it drops input array setting copy of it to the numbers param. It possibly could also be considered as input array changing.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Sorry. I've had honor < 50 when posting so I hadn't such possibility. But after couple more kata Codewars say I now can do this. So I'll take this to account next time. Thanks for editing.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
I've never thought that this as well as
'' + b
converts the variable to String. And it does. Even withnull
,undefined
andNaN
as a value of variable.