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
Review what makes a class object, and what happens when a class is instantiated.
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
Classes are a common feature of many
object oriented programming languages.
0:00
You'll often find them in Java, Python,
Rails, PHP, and many other languages.
0:00
And now you'll find them in JavaScript.
0:04
A class is really just a blueprint for
0:07
creating objects that share
similar properties and methods.
0:08
For example, say you're building an online
version of the card game, solitaire.
0:12
You could create a class to
quickly create a deck of cards.
0:16
In other words, classes simplify
creating similar objects like a card but
0:20
with different properties,
like a different suit and card value.
0:24
We've always been able to
create objects in JavaScript.
0:28
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