| “Something unknown is doing we don't know what.” Sir Arthur Eddington | |||||||||
![]() |
|||||||||
“a resource for web developers...” |
|||||||||
Up to JavaScript: Arrays overview page
Create an array of a predefined size and assign values to index values larger than the array size: this results in extending the array size to accommodate the values.
Create an array without first defining the size and assign a value to a random index value: this results in leaving the first part of the array 'empty' or 'undefined'. Using a 'for loop' to iterate through an array structure and write to the page in each case.
Copyright © 2006-2010 justfigures.co.uk