Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHammony Dube
14,375 PointsHelp me please
Create an empty method called stringGPA() and add it to the Student class
class Student {
constructor(gpa){
this.gpa = gpa;
}
}
const student = new Student(3.9);
2 Answers
Hammony Dube
14,375 PointsOkay thank you Reggie
Reggie Williams
Treehouse TeacherYou're welcome! Were you able to move past this challenge?
Hammony Dube
14,375 Pointsyes was able to move past the challange
Reggie Williams
Treehouse TeacherReggie Williams
Treehouse TeacherHey Hammony Dube similar to the code in the previous video, you will need to add a method to the class. Here the method will be defined just outside of the constructor and named stringGPA