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 trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![arshia mohammadi](https://secure.gravatar.com/avatar/b3facaa2ea16037362fcc9c324b5d9f7?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
arshia mohammadi
7,657 PointsI can't understand this challenge can someone help plz!
Inside the stringGPA() method, convert the value of the gpa property to a string and return it.
class Student {
constructor(gpa){
this.gpa = gpa;
}
stringGPA(this.gpa) {
}
}
const student = new Student(3.9);
4 Answers
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsMethod parameters should be simple names (no "dot" constructs). But you don't need a parameter for this method.
You will need a "return" in the method body, to pass back the string version of the stored gpa value. And the "toString()" method could be handy here.
![arshia mohammadi](https://secure.gravatar.com/avatar/b3facaa2ea16037362fcc9c324b5d9f7?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
arshia mohammadi
7,657 PointsIt would be great if you wrote this in code your answer isn't clear to me.
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsThe whole point of the challenge is to give you the experience of writing the code. Give it your best shot, and if you still have trouble passing the challenge, post the code you've added here and we can give you some more specific pointers for fixing it.
![Marcelo Pereira](https://secure.gravatar.com/avatar/255877b297bc6586b2a89f5338af7056?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Marcelo Pereira
12,169 Pointsclass Student { constructor(gpa, stringGPA){ this.gpa = gpa; } stringGPA(gpa){ return this.gpa = 'stringGPA' }
}
const student = new Student(3.9);
![Sean Gibson](https://secure.gravatar.com/avatar/30f5879674803b29c016757f7876b490?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Sean Gibson
38,363 Pointsclass Student { constructor(gpa){ this.gpa = gpa; } stringGPA(){ return this.gpa.toString()} }
const student = new Student(3.9);
Steven Parker
230,688 PointsSteven Parker
230,688 PointsPerhaps adding these hints as comments will make it more clear: