- Watch & follow Youtube tutorials on a JS framework (currently AngularJS)
- At night, read a JS book intended a bit above the beginners level
- I now remember what hoisting is, and that this happens for function declarations not expressions.
- Remembering about the ‘arguments’ variable available in a function internally, and JS’s lax attitude to limits on parameters/arguments being passed into a function, regardless of explicitly defined parameters.
- typeof, instanceof checking and the perils of trying to use some of these on Arrays (.isArray is the secret) and null checking (it’s an object, so requires strict comparison operators ===).
- I also started learning about this. No, I actually mean ‘this‘, a kind of object that’s available and useful when functions declared inside object property values (i.e methods) reference the object variable. Future changes to the variable name need to be reflected inside the function/method, and ‘this‘ apparently provides a way to do it (I still need to actually write code to reinforce this idea, but I definitely appreciated the introduction to it).
Now I have to take care of some real world/boring stuff, then it’s gym/dinner/CODE. Who knew that learning could be so interesting.
*Note to self: need to review how to test for NaN.