For example when I text the following code, the answer is 10
var testArry = [20, 10, 90, 50, 66][1];
console.log(testArry); // output: 10
When i add another index the first index is overriding, the answer is 90
var testArry = [20, 10, 90, 50, 66][1,2];
console.log(testArry); // output: 90
What is the reason for overriding? Is this overriding or any other terminology is there for this?
I googled it but not found the desired reason.
Thanks.