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.
Doesn't this return
" "
instead of""
for an empty string? I thought I tried this code and it errored ...Edit: I just tried it out and it didn't error. Never Mind. I guess it doesn't join on an empty string (
""
) because there is nothing to join.wow! excellent.
well it took me quite long to do it and while checking others solution,it looks like how easy it was but wasn't for me and now it is.
#THIEVES118
theres always someone in the world that can turn my long code into a brilliant and elegant solution, drags me back to the valley of despair each and every time
this function, although returns a string output, there is still spaces at the begining and of the string.
brilliant
For some reason, I thought the toString() method was necessary at the end of this one.
Since you do not do anything with variable afterwards (besides returning it), there is no need to assign the result to a variable.
That's so easy
Really clever one , i take so long to figure out !!
This was my approach!
Wow, that's a lot of people.
Exactly :D
Just wanna say how much I liked the vars update without using a temp var. Elegant!
Loading more items...