Académique Documents
Professionnel Documents
Culture Documents
Objectives
Learn about the various ways to create new objects with JavaScript Explore how you can create custom constructors to instantiate multiple objects of the same class
Store own data and state Receive messages Interact with other objects Has distinct role or responsibility
Agenda
Introduction to Object-Oriented JavaScript Creating JavaScript Objects Custom Object Constructors
Object Identity
Can use the isPrototypeOf method
See whether one object has another as its
prototype
Agenda
Introduction to Object-Oriented JavaScript Creating JavaScript Objects Custom Object Constructors
prototypes
So all are members of the same class
constructor Operands
function object
Reinforce the idea that constructors are the public identity of a class of objects
Learn More!
This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details!