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.
Yes, I had a problem where I tried to do the exact same way, but I was encountering problems because my keys weren't going in order.
The strength of these series of exercizes is to use helper functions to practice your functional programming skills rather than use a for loop.
A list of them are here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
Hope you enjoy! :)
you realize you can just change the parameter name?
unchanged variable declared as "let." Use "const" instead.
This might have been the intention behind this exercize though? Hard to say....
[...array] creates a temp array. No temp arrays allowed in this exercize
nooooooo, I was totally onboard until you made the temp array (line 8). Not allowed in this exercize.
temp array
no other Arrays allowed. (zeros, normal)
no temp Arrays allowed.
"length" is an attribute of Array, not a method of Array, so it's ok.
The function here is just for grouping and doesn't add any special method classes that do work. You can easily copy the function code and put it exactly where the function call is and it will work exaclty the same.
Not as true to the specs as it could to be, and not as efficient as it should be, but I wouldn't call it 'cheating'
join() method returns a string, so you don't need a toString() method.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join
YOU'VE BEEN RICK ROLLED!!!!
Never mind, I figured it out! YAY!
Loading more items...