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.
... is the spread operator. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
Use Objects and sort them
You can print the random tests using
Please don't post your solutions in discourse section. There's a solutions page where they can be discussed, or you can use a link to your solution.
m += t
probably didn't work, because you didn't have the linevar m = 0
, as @rowcased explained.Also, if you DO want to post a code snippet (when asking for help or whatever), use proper formatting for code blocks, links, etc...
you can't use
+=
while initiatingm
, so the second thing doesn't really work either, you just getNaN
. did it really work for you?