That's how JavaScript works. This kata is just to show us this weird behavior. Btw he didn't consider null as numbers.
null
Hi tyyr. Adjusting the index one "to the right" from 0->1 is the same as shifting the actual array elements one "to the left." Keep in mind the sequence wraps around.
Oh right, I didn't know :P.
This comment is hidden because it contains spoiler information about the solution
Yes it does
EDIT: No it doesn't :P
Loading collection data...
That's how JavaScript works. This kata is just to show us this weird behavior. Btw he didn't consider
null
as numbers.Hi tyyr. Adjusting the index one "to the right" from 0->1 is the same as shifting the actual array elements one "to the left." Keep in mind the sequence wraps around.
Oh right, I didn't know :P.
This comment is hidden because it contains spoiler information about the solution
Yes it does
EDIT: No it doesn't :P