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.
concat
is for array method, a simple+
would do the trick.total isn't an array here, .push() is only for arrays. total is a number which is zero, other positive numbers will add to total and later returning the sum
yh
OR u pass zero in case the empty array
This comment is hidden because it contains spoiler information about the solution
total variable will hold the added values to return the whole operation back
Pardon my novice question here, I'm trying to understand what I'm looking. Am I correct in assuming this is short hand for a normal javascript function?
Thanks for the awesome explanation!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Wow, this is cool... well done!
Loading more items...