M2D3 – ITP1 Nested Iterations and more with Arrays
% 4%2 is same as 4/2. i%2 == 0 This means to divide the value of i to 2, and if the quotient is equal to 0 (no remainder), then the condition will happen. Dynamic adding items to arrays with .push and .length .push – append new items to the array, always adds items to … Read More
M2D2 – ITP1 Advanced Arrays
Use i < 199, rather <= 199 to start at the last index (198) to 0. Example – planets from the previous lesson: Arrays can be compared with each other. Nested Iteration for drawing patterns Nested iteration to draw grids Console Debugger to check how the for loop is working Exercises
M2D1 – ITP1 Working on Midterms
M1D30 – Arrays
Array Object Each element of the array is indexed. Object vs Array When to use an array Coding with Arrays To call an element in an array Example from the lesson What happened here? Common Bugs As a practice, I worked on the planets code at the top and simplify it.