I trudged through the rest of the Arrays chapter like dense spring snow. (Whoa, was that comparison too literary?) I may have had to cheat a little. There were a couple of problems (regarding my old friend "functions") that I just couldn’t solve and I needed to move on.
I then start JQuery this week, so stay tuned for my tears.
What I learned this week
- I hypothetically learned how to use loops in arrays (this is where things went south and I had to go to the forums for help.)
- I learned about nested arrays, and how to refer to an item in a table, and then loop through each of those items checking for a specific criteria, or changing them all if a specific criteria is met.
- Example: “Loop through this table of 20 different types of donuts and append ‘hole’ to the end of the name of each donut.”
- Udacity uses the example of building an object to represent a person. Let’s say you want to store information about the person, like their age, pet names, siblings, etc. Rather than setting individual variables for each pieces of data, you can store multiple pieces of data about the person in an Object.
- Here are some examples
- I understand what objects are. I count this as an accomplishment. Don’t make fun.
- I don't have much else to be proud of this week.
Ah Ha Moment(s)
- Ex: const worldShape = round
- ^^ If you try to change worldShape to flat at a later time in your code, you can't. Because the type of variable is const.
Right now, passing the final project seems quite scary.