Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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