Having the following array:
var arrayElementos = ["elemento 1" , "elemento 2" , "elemento 3"];
We apply the length
property:
var arrayLargo = arrayElementos.length;
And doing alert(arrayLargo);
returns 3.
I try to access the third element and it comes out:
alert (arrayLargo[3]);
undefined
Why, if there are 3 items, can I not access this third party?