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.
Yes,you are right.
I'm going to add that in description.
Thank you!
Yes, apostrophe is a part of word.
"o'clock" = "o'cl."
No, you are not required to trim the result. If string created by random test includes some white spaces just leave it like that.
You are asked just to shorten words which are longer then 3 characters.
JS
Test case says "should return true for a valid walk"
I consoled log array from test case and got this:
[ 'e', 'w', 'e', 'w', 'n', 's', 'n', 's', 'e', 'w' ]
For me it looks to be fine if my function return false for above array. Please let me know if I am wrong.
Sorry I will...
Thank you!
This comment is hidden because it contains spoiler information about the solution
In JS there is a posibility to check for null,undefined,NaN,empty string (""),0 and false just doing:
if( value ) {
}
In this test case it doesn`t work. Need to check for every single value...