Nothing out of the ordinary this week - I covered some more concepts which are familiar to all coding languages:
- Scope: The concept of how variables are available globally, or just within the function they're declared in. This part of the course also covered namespacing, and how it's bad practice to have too many variables available at the global scope. While this makes sense, it's also a concept I'm familiar with in my method of how I write CSS. I try to keep it simple with obvious variable names, and nesting simple names inside other simple names helps to keep them separate from other elements.
- Arrays: Useful for storing lists of data. Can also contain other arrays (because life isn't complicated enough)
- Loops: Looping over arrays to output content & other things. This will also be familiar to anyone using a CMS as you loop through things like articles or pages for outputting navigation.
I'm also finding that when I don't have time to sit down and do another section of the course for an hour, even just 5 minutes of looking over concepts and quick revision with the Codecademy app at least keeps your brain in-gear.