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.
That because the pattern is strongly checking for only digit (0 - 9) nothing else
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Same. This is by no means a 6kyu skill level challenge. The base solution here is a core fundamental javascript concept.
Happened to me in another kata, but I remember to add 'initialvalue' since then. Haha!
This comment is hidden because it contains spoiler information about the solution
The first three parentheses are lookaheads to determine whether the given string contains a lowercase letter, an uppercase one and a digit. Then the "main" part goes, which target is to match only strings of size 6 or more containing only appropriate symbols.
P.S. The first three parentheses are not enough to solve the task, since the string aA1# can match, which is obviously is not needed.
if you want to know what a regex pattern is doing, check out regexper.com