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
DON'T GIVE UP!!!
I spent a whole day to solve this kata... after all I gave up and found this solution in web
I'm crushed :(((
I'm sorry for my bad English, but in order to solve this kata, I needed an additional condition, because the tests did not pass, and everything went without it...
Strange tests, the second time passed without a condition :)
let was introduced in 2015 and some people still have the habit to use var.
This comment is hidden because it contains spoiler information about the solution
Nice and simple, but I fail to see how it would handle the test case where begin is greater than end
Sure. To each their own. ;)
CodeWars has been existing for 8 years? People do what they feel like?
What am I missing that people keep using
var
instead oflet
andconst
?Interesting
Reinforcement test allows the designer to analyze the submitted code. E.g. find its length, search for keywords, etc.
The TypeError is really bad feedback if "Matt c" wanted people to learn something.