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.
Awesome
Genius!
very nice!
I did not understand at first so had to go step by step on paper.
Interesting solution
first top voted solution that is really cool in a while
shoot thats actually ki nda crazy
Wow, nice and elegant aproach, but you should use '===' instead of '==' to compare left and right as we intend to compare their numerical value so including type aswell ( in your case "false" would be equal to "0" etc ), and I personally am not a fan of using vars ( "let" and "const" would be more elegant )
And here I am, slicing up the array like a madman with a rusty cleaver...
whenever you get a regex in a task or in work, try working through it with an app like regex101 (or any other alternative). It neatly shows the result of your regex, ou can input test strings etc. Great stuff for learning regex. Just remember to always select JavaScript (or EcmaScript) interpreter as there are subtle differences
But there is an index that will make it work. It's 0.
On index
0
left and right values are equal.This comment is hidden because it contains spoiler information about the solution
That regex makes it so we only replace words of 5 or more letters.
This comment is hidden because it contains spoiler information about the solution
fun kata and still reasonable best practice.
Ok, after seeing this I'm embarrassed of my solution. Genius!
Loading more items...