This course will be retired on October 31, 2026.
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 Introducing ES2015!
You have completed Introducing ES2015!
Preview
Less code is better. In this video we review the Object Property Shorthand and how it reduces your keystrokes.
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
Which is to say the more code we write,
the more likely we are to introduce a bug.
0:00
The more code browsers need to download,
and
0:03
the longer it can take to review your
own in your colleague's program.
0:05
In other words,
writing less code is often a good thing.
0:09
One short ES2015 gives us
is the object property shorthand.
0:13
It's a simple, but
very useful addition to JavaScript.
0:17
Let's see it in action.
0:21
You can follow along using the latest
workspace by opening the workspace for
0:23
this video.
0:26
Suppose I have a form that allows students
to submit feedback about a course.
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