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 Practice Object Basics in JavaScript!
You have completed Practice Object Basics in JavaScript!
Preview
Solution video for first code challenge
This video doesn't have any notes.
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
[MUSIC]
0:00
For your first practice code challenge,
0:00
you were supposed to create an object
literal that had a property called string.
0:02
So follow along to see the solution.
0:06
The value for string was a simple phrase.
0:08
Programming with treehouse is fun.
0:10
This object literal was supposed to be
held in a variable called myString.
0:13
Let's get started.
0:17
First, declare your variable.
0:18
I'll set the variable to
a pair of curly braces.
0:23
These curly braces indicate an object,
and an object's properties and
0:27
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