Thank you!!


On Thu, Oct 24, 2013 at 12:35 PM, David Manning <notifications@github.com>wrote:

> In rayne/yehudahomework.js:
>
> > @@ -0,0 +1,11 @@
> > +var regularPolygon = {
> > +	sideLength: 0,
> > +	perimeter: function () {
> > +		return this.sideLength * this.numberOfSides
> > +	}
> > +}
> > +
> > +var triangle = Object.create(regularPolygon)
> > +triangle['numberOfSides'] = 3;
> > +
> > +console.log(triangle.perimeter);
>
> You're referencing the perimeter method instead of calling it.
>
> Do this:
>
> console.log(triangle.perimeter());
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/portlandcodeschool/JS2013F-assignment4/pull/21/files#r7198900>
> .
>