Source code for the blog post “JavaScript inheritance by example”
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
README.md
point.js

README.md

JavaScript inheritance by example

The source code of the blog post “JavaScript inheritance by example”.

Interaction on Node.js:

> var point = require("./point");
> var p = new point.ColorPoint(5, 2);
> p.dist()
5.385164807134504

Tests