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 code should not be necessary given we are told in the problem statement that the input is a string.
No random tests in PHP
Actual and expected are swapped
Description:
But in JS, the input could be numbers or arrays. Either revise the description or remove non-string inputs from the tests.
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
This comment is hidden because it contains spoiler information about the solution
The description starts with "Given a string of characters" but then in JS I get inputs like
null
or arrays. Either mention this or exclude it. In my opinion these inputs are invalid according to the description.