I can’t wrap my mind around this quirk.

[1,2,3,4,5,6][1,2,3]; // 4
[1,2,3,4,5,6][1,2]; // 3

I know [1,2,3] + [1,2] = "1,2,31,2", but I can’t find what type or operation is being performed.

3 Answers
3

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *