Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Objects!
You have completed JavaScript Objects!
Preview
Create an object literal containing various pieces of information about a person.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
download the project files and
use your preferred text editor.
0:00
Open the file object.js.
0:02
This file is already linked to index.html.
0:04
First, declare a variable named person,
and assign it a set of curly braces.
0:08
These two curly braces
represent the object.
0:14
Now we'll add several property
value pairs to the object.
0:18
Let's start with the person's name.
0:21
I'll indent this line, type the property
name, a colon, and the value.
0:23
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up