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.
It's probably a brittle solution, but for the strings provided ...
this one is the GOAT
I'm just curious as to why this isn't the "best practice" it's this the "best" way to break the code down?
He needs to assign ("a" === array) to compare between the current e (element) and the next element a[i+1] so he can return any of the three options.
I understand that "a" in the filter iterations is the input array. Is there a benefit to using "a" in the filter iterations over "array"?
My favorite one so far! Looks pretty neat.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hello,
What would be the difference between (/ /g, "") and (/\s/g, "")? Are they the exact same? Which one is best practice?
Best,
Maurizio A.
Is it odd or not that for an ES6-centric challenge, they are using pre-ES6 function formatting?
It took some time to realize how the logic works. An interesting solution but a little bit confusing.
Suggestion for initial code sample
From:
function spinWords(){
//TODO Have fun :)
}
To:
function spinWords(words){
//TODO Have fun :)
}
Instead of
re.findall(..)[0]
you could writere.search(...)
.Oh c'mon. It's not a competition who the best uglifier
Oh c'mon. It's not a competition who the best uglifier
Loading more items...