Blog two

Code Sample



An array contains is an object that contains data in it to store. The objects are numbered with an index. The numbering of the objects in the index begins with a zero(0).
To access the data in an array, the var attribute must be called with the index number following behind in brackets.
Arrays will return either a string, number, or boolean expression(true or false).

				var sampleCode = ["A", "B", "C"] 
				alert(sampleCode[0]); //This will alert "A".
				var sampleCode = [
					{code: fontweight: Bold},
					{code: font-size: 15px}

				sampleCode[0].code = "font-weight"; //changes the code in the zero's place of the index.