Mega Code Archive
Categories
/
JavaScript Tutorial
/
Array
Arrays as Objects
It is possible to access the elements of arrays as properties if a string index is used. The [] operators and dot notation can be used interchangeably when accessing the contents of the array.