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
Learn how to declare a class and add a constructor method.
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
then create an object of that class
type for each of the animals.
0:00
Hopefully that doesn't sound too hard or
complicated, but if it does,
0:02
stay with me, you can and will get this
stuff, even if it's hard at first.
0:05
You can always rewind,
watch these videos again, and
0:10
you can even slow me down
if I'm talking too fast.
0:12
There's a workspace attached to this
video that you can code along with.
0:16
Take a moment to go ahead and
open that up.
0:19
If you'd rather use your own text editor,
you can download the project files and
0:22
follow along that way.
0:25
Okay, you ready?
0:27
Open up the pets.js file.
0:29
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