JavaScript with LinkedIn Learning, Day 4

Just a short post today. I’ve been following up on the practice exercises from last time, building a class and using it to create objects. I ran into some issues with it, though — I can’t access my new class and its constructor from the browser console. My first suspicion is that it’s because I switched browsers (formerly using the Firefox console, now using Chrome). Maybe Firefox is more forgiving in some way — but I can’t think of why… Read moreJavaScript with LinkedIn Learning, Day 4

JavaScript with LinkedIn Learning, Day 3

Another day, another example of JavaScript doing things strangely, where strange is defined in the self-centered manner of “not how I would expect, based on what I learned”. This time it’s the flexible method of creating a class: either using a declaration: Or using an expression: According to the lesson the trend is towards using an expression, but the instructor uses a declaration, and it seems to me to line up with other languages’ way of doing things a bit… Read moreJavaScript with LinkedIn Learning, Day 3

JavaScript with LinkedIn Learning, Day 2

Bracket Notation The first big thing today was learning about accessing the properties of different objects. The standard notation – aka, what I’m used to – is dot notation (object.property), but today I discovered bracket notation, which looks like object[“property”]. This is used for cases where the property is a variable rather than a constant, or the property might not conform to JavaScript naming conventions (basically, there’s nothing preventing an object or variable from being named in a way that… Read moreJavaScript with LinkedIn Learning, Day 2

JavaScript with LinkedIn Learning, Day 1(ish)

As per usual, the “first” day was all setup, and the real day one is where the learning starts. I’m following along with this tutorial in LinkedIn Learning, to get familiar with some of the basics of JavaScript. Fun Little Tidbits Special Commenting Trick: First, I learned that you can put your cursor on a line of code (or highlight multiple lines) hit CTRL+/ in order to comment out those line(s). Probably old news for some people, but absolutely magic… Read moreJavaScript with LinkedIn Learning, Day 1(ish)