{"size": 427, "ext": "js", "max_stars_repo_path": "4- Prototypical Inheritance/3- Resetting the Constructor/index.js", "max_stars_repo_name": "nathanswim/js-oop", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "4- Prototypical Inheritance/3- Resetting the Constructor/index.js", "max_issues_repo_name": "nathanswim/js-oop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "4- Prototypical Inheritance/3- Resetting the Constructor/index.js", "max_forks_repo_name": "nathanswim/js-oop", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.35, "max_line_length": 50, "alphanum_fraction": 0.681498829}
﻿function Shape(color) {
    this.color = color;
}
Shape.prototype.duplicate = function() {
    console.log('duplicate');
};

function Circle(radius, color) {
    Shape.call(this, color);
    this.radius = radius;
}
Circle.prototype = Object.create(Shape.prototype);
Circle.prototype.constructor = Circle;
Circle.prototype.draw = function() {
    console.log('draw Circle');
};

const c = new Circle(1, 'red');
console.log(c);
