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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
From MDN:
NEVER USE eval()!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#never_use_eval!
:)
Just echoing many of the other comments here. The wording of the instructions was the opposite of the expected (or at least tested against) results. The instructions imply an evaluation should be made between the two sorted and filtered strings and the larger of the two should be returned. I also left the code for those instructions in my submitted code, commented out.
For anybody coming here wondering why your code is not working, just know that you have to combine the two strings before sorting and filtering. I don't think this is a spoiler because really the instructions spoil it.