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.
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
My solution was wrong. I did some console.log on the passed input and my calculation to find my miscalculation.
My solution is now working, and I'm closing the issue. (as there was not issue to begin with)
Not able to pass the last test in javascript when submitting
✔ Test Passed
✔ Test Passed
✘ Value is not what was expected
I'm fairly sure that my code is correct. But as I cannot see the input and expected values once submitting, it's a bit hard to verify and finish the Kata.