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.
The kata's description says "Utilize the comprehension syntax in the following exercise"
it might be, that the passed function invokes the function again.
e.g.
would run the myDiv.onclick more than once if you place
shouldRun = false
AFTER executing the function. This is why you should place it first.should be lastIndexOf
This would be considered a security flaw. Some name-password combinations could match, even if they are wrong (e.g. name = "Santa", password = "Claus Ho Ho Ho!").
This isn't a huge flaw, but it is one, and in IT security there is often little tolerance for such mistakes.