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 Object-Oriented JavaScript!
You have completed Object-Oriented JavaScript!
Preview
Everything in JavaScript is an object or can be treated like one. Learn about familiar JavaScript objects to get a deeper understanding of why objects are useful.
Resources
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
In this video, we're going to build
on that by talking about objects
0:00
in JavaScript that you're
already familiar with.
0:02
Most everything you encounter when
programming in JavaScript is an object or
0:05
can be treated like an object.
0:09
For example, in your course progression,
you have probably heard of or
0:11
encountered the DOM, or
the Document Object Model.
0:15
That's just the object that
represents the HTML document
0:18
your JavaScript interacts with.
0:21
DOM elements are objects and
have properties and methods.
0:23
For example, I can get an element
styles with the style property.
0:26
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