Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Preview
Start a free Courses trial
to watch this video
Solution video for updating a property 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
For the final challenge,
0:00
you were tasked with updating a property
value of the MyString object.
0:01
The string property should be changed
from Programming with Treehouse is fun
0:05
to I Love Fullstack Javascript.
0:09
This is a lot like the previous challenge
where you created a property on the fly
0:12
and assigned it a value.
0:16
To update a property, you access is
using dot or bracket notation, and
0:18
then assign it a new value.
0:22
For this challenge, that looks like this.
0:24
Now let's output all of myString to
the console and see what we get.
0:37
As you can see,
the whole object is output.
0:53
And it chose the new value for the string
property, the countWords method, and
0:56
the characters property
that we added on the fly.
1:01
Great work on this practice session.
1:04
I hope you enjoyed it.
1:06
Talk to you soon, and keep on coding.
1:07
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