# Monthly Archives: July 2023

## 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 … Continue reading

## 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 … Continue reading

## 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 … Continue reading

## M1D29 – Loops

For Loop It tells the computer what to do, and how to do it. Draw does a self-loop, so this continuously does the loop. Example from the lesson today, that I wanted to review more later: Variable i or index … Continue reading

## M1D28 – Working on Midterms

This code is working for scaling, but I did it through trial and error of different combination of mathematical statements. I need to check this back to look for pattern, so I would know how I did it.

## M1D27 – Conditionals

Types Numbers Boolean Strings Mixing Types and Performing Operations Working with Booleans frameCount – https://p5js.org/reference/#/p5/frameCount parseInt – https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt dist function https://p5js.org/reference/#/p5/dist Buttons https://p5js.org/reference/#/p5/createButton IMPORTANT NOTE FROM THIS LESSON: Sample nesting from the lesson: Debugging Exercise Note: I am still confused … Continue reading