Category Archives: Study Notes

Day 39 – ITP1 Constructor Function

constructor function – instead of as writing out our objects one by one, we create a blueprint that we can use to create as many objects as we need and keep our code modular.

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

Day 38 – ITP1 Extending Objects

this – allows us to access the properties of an object from within itself

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

Day 37 – ITP1 Methods

Methods – when we put functions in an objects. It can returns values. Objects are made up of properties, which are the attributes or the thing you are trying to model, and methods which are the things the objects can … Continue reading

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

Day 36 – ITP1 Search Patterns

In the example below, the for loop code returns all the placement index with the value 42 – 265, 272, and so on. And the final value returns the last index 993. But we’re looking for the first index, so … Continue reading

Posted in 6-Month Journey, Study Notes | Tagged , , , | Leave a comment

Day 35 – ITP1 Arrays of Objects

Complex Objects Properties

Posted in 6-Month Journey, Study Notes | Tagged , , , | Leave a comment

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