Intro to Objects

In the Intro to Objects talk-through, Pamela introduces the viewer to the concept of Objects, a method for storing multiple related pieces of information in a single variable.
As an example, Pamela creates a program that displays various information about Winston.  She begins by doing this using variables, as learned in a prior lesson.  She then explains how it's possible to store information in one defined object using properties, which consist of a key and a value.
The syntax for defining an object and its properties is:
 var test = {
 item1: "xyz",
 item2: 13,
 item3: false
 };
To access a property defined in an object, the user utilizes what's known as "dot notation".  In the above example, to access the value of item1, the user would reference the following in their code, which represents the object name (in this case, "test"), a dot "." and then the key name (in this case, "item1"):
 test.item1
Category:Computing
Category:Intro to JS
Category:Objects
Category:Coding Talk Throughs