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.
clean
the reduce method takes a callback function, this callback function takes two main params too,
the first one is called accumulator or previous, this param detects what returned value of the function that called back and assign it to itself.
so here at first it puts 10 as value to "v" and then put that v in the function witch will evaluate it and lets say that it increases the value by one so the return value is now 11, now the value of v will be updated and become 11 and so on.
is it because of the multiple methods? like filters?
i wanna know more about time complexities.
what a sorcery. wow
Goodness. i hope i can be this guy 1 day
This comment is hidden because it contains spoiler information about the solution
can someone explain how this works? im lost. lol
I Just did this for the mental boost. (kata title)
Im a student, is this actually a thing like wut..?, im curious lol
Ohh i see i see, thanks for the new insights!.
This comment is hidden because it contains spoiler information about the solution
This is kinda true LOL i think regex is the key to javascript LMAO
may can add .tolowercase or uppercase function to shorten the solution a bit more? idk lol doesnt really matter when the code is this clean, nice one dud
Can someone explain me how this works. im such a dummy