Download presentation
Presentation is loading. Please wait.
1
JavaScript onLoad arrays
2
onload
3
onload Using JavaScript to create content No user input Comes up when page LOADS <body onload=“doitnow();”>
4
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;
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
6
Lab: cooperatively
7
Work on the javaScript Define the arrays Split a decimal number into its digits Access the arrays Return a value
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.