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.
sorry, it's 7. You're correct, I thought that the second param is 5.
Thanks for your suggestions! I will update kata.
Already fixed, thx!
in the second example, result has to be:
getPages(2, 7, 9) == [1, 2, 3, 4, 5], because numberOfPagesToDisplay = 5.
Let's imagine that it's pagination on web-site. So to be user-friendly, pagination has always contains the same numberOfPagesToDisplay, in this case it's always 5.
Thanks!
nice!
Cool task! EcmaScript2015 helped me to complete thistricky task easy