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.
Now it is absolutely clear! Thank you for your time and patience!)
This comment is hidden because it contains spoiler information about the solution
Thank you for your reply! I have already checked this issue, really, if one assign object to a variable the copy is stored in this variable, not object itself. That was the point I missed
Hi xenialugovaya,
It's hard to say without seeing your code and how you used the variable, but basically if you copied the value from playerPlaces out to a new variable (currentPosition) and made any changes to it, you'd need to remember to copy it back into the playerPlaces object after the changes. that's the most likely reason it was failing as far as I can guess without seeing how you used it.
J
This comment is hidden because it contains spoiler information about the solution
Can someone explain this code?
This comment is hidden because it contains spoiler information about the solution
Doubt!! Consider the number 89.
for "8" the initial value added is 0, as initial value is specified in reduce method.
So for "9" , the accumulator(8) will be added to 9.
Is 0 used as initial value for all indexes in array?