Monthly Archives: July 2023

M2D4 – ITP1 2D Arrays

Posted in Study Notes | Tagged , , , | Leave a comment

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

Posted in Study Notes | Tagged , , , | Leave a comment

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

Posted in Study Notes | Tagged , , , | Leave a comment

M2D1 – ITP1 Working on Midterms

Posted in Study Notes | Tagged , , , | Leave a comment

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

Posted in Study Notes | Tagged , , , | Leave a comment

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

Posted in Study Notes | Tagged , , , | Leave a comment

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.

Posted in Study Notes | Tagged , , , | Leave a comment

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

Posted in Study Notes | Tagged , , , | Leave a comment

M1D26 – Conditional Logic

else and elseif else if Allows us to set up multiple conditions for a chain together Rule in nesting – if the first action happens, it will no longer check the succeeding conditions. If two conditions is mandatory, nest the … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D25 – ITP1

+ will let the console log add the value to the string Debug Assignment https://d.pr/i/opXs3L/e9fpGoEZut The Elegant Coder

Posted in Study Notes | Tagged , , , | Leave a comment