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.This comment is hidden because it contains spoiler information about the solution
Great, it's now working and I have marked it as spoiler. Thank you.
Where are you squaring anything? And next time, please, mark your post as having spoiler content. You also have a double dot there.
This comment is hidden because it contains spoiler information about the solution
Awesome. I get you. I couldn't think of a way of adding arguments to an array. Can I say [...a,b] or [a,b]?
arguments
thing, I mean)arr
thing, just a number that you'll update, then return in the end.What can I use instead of arguments?
It should have been reduced, thank you.
My biggest confusion is if I can have #for after else statement.
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) => ???!??This comment is hidden because it contains spoiler information about the solution
Read the docs of the methods you're trying to use, you're doing it wrong, and why are you using parseInt?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...