1D Arrays

Differences between Javascript arrays and what you're used to:

Similarities

	var arr1 = new Array();
	arr1[0] = 'test';
	arr1[1] = 25;
	arr1[4] = -1;
	alert("arr1: " + arr1);
	

Example 1: Create an empty array, add strings, output thumbnails. (see head)

Example 2: Create associative array, output using for loop, output using string

Can do nested loops


Follow this link for Object Oriented Javascript HERE