Thursday 28 April 2016

Objects - The Complete Node JS Developer Course

Lesson 12 is about functions and it is pretty straight forward to follow. The next lesson is about objects, and that's where things get really interesting!

Objects


Lesson 13 explains objects really well! As usual, the instructor gives useful and practical insights that will be needed in the field. For example, Andrew shows us how to log out a whole object via the terminal so we can see what values and properties are set in that object. That will be invaluable in future when debugging objects.

Bracket notation and dot notation are explained in detail in this lesson. I did not know that you could use bracket notation to create a property and then call the property using dot notation, and vice versa. That's good to know.

The main difference between bracket and dot notation, and the benefits of using bracket notation rather than dot notation in certain circumstances, are also explained.

Bracket notation is useful because you don't have to know the property name in order to access it, whereas with dot notation you do have to know the name.

No comments:

Post a Comment