The constructor function Square is called to create a new object 's':
// the constructor function
function Square(l) {
this.length = l;
}
// the Square.prototype has 'area' method
Square.prototype.area = function() {
return this.length**2;
};
// create an object 's'
var s = new Square(10);
Which one of the four illustrations below (A,B,C,D) correctly shows how Square, Square.prototype, and s are related? ( Note that [[Prototype]] defined by ECMAScript standard is known as __proto__ in all modern browsers )