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.
The guy really did his magic there.
Isn't it better that in such case the function would return a sum of values got by subtracting the step from begin?
It is not resolved. I am still getting the same error. Seems like tests are running in environment withou ''.repeat(). All you have to do is define it yourself:
String.prototype.repeat = function(n) {
var ret = this;
while(--n) ret += this;
return ret;
};
This solution is absolutely unreadable and I am really sad that things like this are possible in JavaScript. Where the brief olden times JavaScript syntax has gone...
(Marking as clever.)