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.
Fixed.
Yes, but there is no function. In the test I do this
let arr = [...5]
, and check isarr === [1, 2, 3, 4, 5]
?The task is not about printing an array to console.
By default, you can't use spread operator with numbers. In this kata you should modify built-in object to make it possible.