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.
? true : false is redundant here.
The strict equality operator (===) checks whether its two operands are equal, returning a Boolean result.
And in our case, if two conditions are true, Logical AND (&&) will return true, otherwise false
what if we have two numbers with the same length but a < b. For example 13 and 25. the output will be 251325, but 132513 is needed
23 dec 2021
if TEST is passed, BUT....
if ATTEMPT this solution is:
SyntaxError: Invalid regular expression: /:-($/: Unterminated group
at String.match ()
at solution (test.js:5:14)
at check (test.js:12:16)
at Context.it (test.js:28:1)
Ternary for the win!
'$' is end of line in Regex
why is the +"$" needed?
I did the same thing, but I wish I knew what the '[object Array]' part meant
answered already for another solution
Hi MehLON, Could you explain me how +value works?, I didn't see it before. :)
Wow, your solution is awesome. Thanks a lot.
This comment is hidden because it contains spoiler information about the solution