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

JavaScript

am 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

Did this work in the end? When ever something doesn't work always look for that sneaky semi-colon

Balazs Kelemen
Balazs Kelemen
8,948 Points

Be careful with capital letters and semi-colons. This worked for me:

function Monster(name) {
  this.name = name;
}

Don't capitalize name.

Thanks Norman.

thanx a lot

Give 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 ;.