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
This comment is hidden because it contains spoiler information about the solution
You could have filled with
int
, sox
would have been used instead ofint
in.map
👌The garden should have the exact amount of plants in the end. Not more.
That's what I thought too but the result has to be right, if you just wait to overtake it can't work.
If you don't fill, the array is considered empty for .map, so .map returns an empty array. You can fill it anything, even undefined, but you have to do it or otherwise map doesn't do anything.
Yes, thank you!
agree)