Readings
Current: Chap. 1, 2, 3
Next: Chap. 4
Here is a page
this will give you more information about making and using
objects in JavaScript.
This link gives good detail on how to use the members
(data fields and methods) of an object.
We are creating new objects using an approach this link
calls "using object initializers"; we create an explicit
object as a local variable in a function and then
return that object.
This is simple and easy to get right so we are using it
as an introductory approach.
This link emphasizes a different (more advanced) way to make objects.
It involves writing a special type of function (a constructor)
that defines the members of the object,
and then creating an object when you need one by using
the "new" keyword.
This approach is more similar to class-based languages like Java.