Recently, while working on a pre-existing website with JavaScript code, I made an interesting discovery.
I noticed that the code was accessing array items in a unique way:
var value = myArray[0, 1];
This seems to be retrieving the second item of the array. However, I am puzzled by how it differs from simply using:
var value = myArray[1];
Even when I tried changing the number before the comma, the result remained the same - always returning the second item of the array.