JavaScript onLoad arrays
onload
onload Using JavaScript to create content No user input Comes up when page LOADS <body onload=“doitnow();”>
Explicitly define them Figures out type Case sensitive var x = 5; Declared Variables Explicitly define them Can give them starting values Figures out type Case sensitive var x = 5;
Arrays Collection of related information Referenced with index Easy way to choose between items var array = [ “A", "B", “F", "G" ]; Just keep adding items! array[index] Start with 0 Example: Date returns number, you return that month
Lab: cooperatively
Work on the javaScript Define the arrays Split a decimal number into its digits Access the arrays Return a value