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.
'looks like you solved it'
This comment is hidden because it contains spoiler information about the solution
[a,b]
, yes.Where are you squaring anything? And next time, please, mark your post as having spoiler content. You also have a double dot there.
arguments
thing, I mean)arr
thing, just a number that you'll update, then return in the end.arguments
? Don't use that... It's old fashion and the best way to do bad things.replace
isn't a method ofArray.prototype
=> ???replace
to the output ofpush
, which is a number... (see MDN documentation) => ???!??Read the docs of the methods you're trying to use, you're doing it wrong, and why are you using parseInt?