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.
use strict really don't need , and i am just don't understand why so many stars to that case
Learned something new!
Nice way to code.
same solution but i use match() instead.
wao, i barely servived the critisism, but thanks for correcting my regExp mistake.
So clean!
Yes, the use of assignment here is a little bit confusing.
Although it is worth noting, that it is not enough to just change
+=
to+
, because the order of operations will be different. There should be parentheses to enclose the second part. That suggests me to believe, that the+=
operator was used here to omit using parens.There is also no need to assign the new value to the
name
variable with+=
. Return it without assignment,return name + ...
.This comment is hidden because it contains spoiler information about the solution
mine is more clear and a bit close to you.
In this case, since it is just using the Array.prototype.join() method to join each array element with a space, it doesn't really benefit from "use strict".
cool but unreadable
Thank you for the info. I'm still struggling to see what restrict mode exactly accomplishes in this particular problem. Are there any problems with the join method?
oh, I see, thank you
This comment is hidden because it contains spoiler information about the solution
Loading more items...