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.
Very clever!
This comment is hidden because it contains spoiler information about the solution
This is the real clever solution. Have no idea why the other ones got some many votes.
Strings doesn't have
reverse()
This comment is hidden because it contains spoiler information about the solution
Very fun kata, thank you for your work!
Neat.
Seems to work properly now - thank you!
Actually it seems like it's always failing when input date is Friday??
Appears random tests are broken?
Input:
Friday 15:26
Result:
Expected: 'Library opens: today 08:00', instead got: 'Library closes at 20:00'
Another example:
Input:
Friday 05:06
Result:
Expected: 'Library closes at 20:00', instead got: 'Library opens: today 08:00'
What am I missing?
You are returning a string
"[1, 2, 3]"
but instead you need to return an array[1, 2, 3]
.Sure. But it doesn't matter.
-5 + 3 === 3 - 5
This comment is hidden because it contains spoiler information about the solution
Sounds like you're trying to call
replace
on something that isn't a string. You can either check that beforehand (if (typeof input === 'string')
or cast it manuallyString(input).replace(...)
.This looks so wrong xd
Loading more items...