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

MUZ141026 Bertha Ndachengedzwa
6,260 Pointsam lost what am i supposed to do?
Modify the Monster constructor to take one parameter of name. When the constructor creates a new instance assign the parameter name and to the property of name on the new instance.
function Monster (Name) { this.name = name }
5 Answers

Stu Cowley
26,287 PointsDid this work in the end? When ever something doesn't work always look for that sneaky semi-colon

Balazs Kelemen
8,948 PointsBe careful with capital letters and semi-colons. This worked for me:
function Monster(name) {
this.name = name;
}

Norman Craig
14,018 PointsDon't capitalize name.

Natasha Johnson
12,285 PointsThanks Norman.

MUZ141026 Bertha Ndachengedzwa
6,260 Pointsthanx a lot

Stu Cowley
26,287 PointsGive this a go.
function Monster (Name) {
this.name = name;
}
I'm not the greatest JavaScript developer but I think you may have missed the old ;.