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 trialsaddam lashuel
Courses Plus Student 9,178 Pointsprototype
function Shape(sides) { this.sides = sides; }
function Square() { Shape.call(______________, 4); }
Square.prototype = Object.create(Shape.prototype);
What is the answer to this question?
1 Answer
Valeshan Naidoo
27,008 PointsWhenever you use the call method for a function, the first parameter is always "this" (without the apostrophes), it associates the attributes to "this" which when called belongs to the Shapes() function.
saddam lashuel
Courses Plus Student 9,178 Pointssaddam lashuel
Courses Plus Student 9,178 PointsThanks!!!!