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.
for sake of learning, why is using slice not a good practice?
c = char = character
i = indx = index
how about naming? -
c
- it's not appropriate to call element like thisAgree!
How are those people who voted this solution with the clever mark??
Agreed!
Absolutely! no doubt!
I saw at least 10 solutions here - and all of them includes methods like
splice
orslice
and magic numbers like
3
This comment is hidden because it contains spoiler information about the solution
yep!
all the solutions above - includes the number
3
- strange number.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes, not using v is ok. I could mark the first variable as "_" symbol to emphasize this point.
This comment is hidden because it contains spoiler information about the solution
I know, but it's better to write it in one line using js modern methods, than use my own poor mistake decision
but why you don't use v anywhere?
is it correct for 'use strict' mode?
This comment is hidden because it contains spoiler information about the solution
Overcomplicating the task doesn't mean it's complicated itself.
Loading more items...