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.
yes, it is not needed - explicit vs implicit choice.
a possibly more straightforward way would be
in the body of the loop, but +1 for documenting your approach
Clever one! :)
This comment is hidden because it contains spoiler information about the solution
As i thought :)
No, it's not needed.
But is coercing it into a boolean needed, since javascript accepts truthy and falsy values?
The first coerces it to a boolean and the second reverts it to the proper value.
Along with what Jhonny said, i'd like to add that it's not good practice to write/modify the prototype property of an built-in objects.
Why are you using double negation in this one? Double negation implies the boolean itself.
It would be better to use a greedy regex operator because it's not safe to assume that there would be, at maximum, 3 "WUB"'s in a row.
This comment is hidden because it contains spoiler information about the solution