Quotes & Key Ideas:
- “When you declare a variable with the
letkeyword inside a block, statement, or expression, its scope is limited to that block, statement, or expression"
consthas all the awesome features that let has, with the added bonus that variables declared using
constare read-only. They are a constant value, which means that once a variable is assigned with const, it cannot be reassigned"
- “However, it is important to understand that objects (including arrays and functions) assigned to a variable using
constare still mutable. Using the
constdeclaration only prevents reassignment of the variable identifier"
Object.freeze()to prevent data mutation."
spread operator vs.
“One key difference between the spread operator and array destructuring is that the spread operator unpacks all contents of an array into a comma-separated list. Consequently, you cannot pick or choose which elements you want to assign to variables. Destructuring an array lets us do exactly that.”
The challenges on fCC were a little bit difficult today, especially the ones focused on destructuring. I will need to take another look at some of these or find some other resources to dive deeper into them.
For music today, I plugged in my speakers and played some Soft Piano Jazz and gave my room a bit of a cafe vibe — but without the loud espresso machine. (-;
Link to work:
For my progress visit the timeline on my freeCodeCamp Profile.
You can read my full #100DaysOfCode journal on GitHub