Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to create new classes based off of an existing class.
Code snippets
class Student {
constructor({ name, age, interestLevel = 5 } = {} ) {
this.name = name;
this.age = age;
this.interestLevel = interestLevel;
this.grades = new Map;
}
}
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Adam Lyles Kauffman
14,016 Points1 Answer
-
Philip Kroupoderov
Front End Web Development Techdegree Graduate 21,641 Pointswhy the return statement has no value?
1 Answer
-
PLUS
tal Shnitzer
Courses Plus Student 5,242 Points1 Answer
-
Leo Marco Corpuz
18,975 Points1 Answer
-
PLUS
Przemyslaw Mazur
Courses Plus Student 9,296 Points1 Answer
-
Cathy Warner
2,346 Points0 Answers
-
Yuval Blass
18,134 Points5 Answers
-
Greg Schudel
4,090 Points3 Answers
-
Joedy Felts
3,981 Points0 Answers
-
Rifqi Fahmi
23,164 PointsDoes anyone notice that this new features seems like Java language ? hmmm
Posted by Rifqi FahmiRifqi Fahmi
23,164 Points4 Answers
-
Nick Field
17,091 Points4 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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