JS Object Model

Create an object constructor so you can use it as a blueprint to create new instances of that object later (in this example, that instance of the Person object is ‘bob’).

screen-shot-2017-02-22-at-1-12-46-pm

The methods created for the object constructor are the object keys.  Methods created inside a constructor start with ‘this.’

Advertisements
JS Object Model

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s