01:198:170 Chapter Notes - Chapter 20: C Syntax, Array Data Structure
taupebee294 and 9 others unlocked
9
01:198:170 Full Course Notes
Verified Note
9 documents
Document Summary
Chapter 20 iteration principles: 4th most important idea since assignment, conditionals, and functions, means looping through a series of statements to repeat them. Javascript main iteration statement for loop with syntax for(;;){ They control loop by using iteration variable: normal var, must be declared typically at start of loop, example: for(var j=0;j<3;j=j+1){ (set iteration var value) if(){ (if false terminates/if true statement performed) ; j= j+1: false outcome terminates loop. Indexing : process of creating a sequence of names by associating a base name (e. g. apollo) with a number ( 13 ) when new name is needed go to next number with the same base. Index can be a constant var or expression: must evaluate to non-negative integer the index value. Index origin point at which indexing begins, that is the least index. Index value must be less than array length: document object model (dom) browser"s representation (data structures) for the page.