A Product Manager Learns to Code: Week 9

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’ve now started the Objects chapter - the last chapter in the scholarship course for JavaScript - and I’ll probably finish it tomorrow. 

I then start JQuery this week, so stay tuned for my tears.

learn to code week 9.jpg

What I learned this week

  1. 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.)
  2. 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.
    1. Example: “Loop through this table of 20 different types of donuts and append ‘hole’ to the end of the name of each donut.”
  3. I started the Objects chapter for JavaScript. What’s an object? “Objects are a data structure in JavaScript that lets you store data about a particular thing and helps you keep track of that data using a ‘key’."
    1. 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. 
    2. Here are some examples
 Example of setting each individual item to its own variable. Easy to lose track of all the variables.

Example of setting each individual item to its own variable. Easy to lose track of all the variables.

 Example of creating an object to store multiple variables about a person. Now you can refer to the object, and all of the descriptive variables about the person are build into the object.

Example of creating an object to store multiple variables about a person. Now you can refer to the object, and all of the descriptive variables about the person are build into the object.

 

Accomplishments

  1. I understand what objects are. I count this as an accomplishment. Don’t make fun. 
  2. I don't have much else to be proud of this week.

Ah Ha Moment(s)

  1. I'm doing some supplemental study with Codecademy (Intro to Javascript course) and they teach to set variables as const or let. const variables can never be changed. I found this helpful. 
    1. Ex: const worldShape = round
    2. ^^ 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.

 

I realized today that I'm not actually sure if I remember anything from the HTML and CSS parts of this course. It seems like so long ago. This concerns me. Although it seems like the wrap-up project for this scholarship course involves HTML, CSS, JavaScript, and JQuery. 

Right now, passing the final project seems quite scary. 

code.png