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 Run the tests via Mocha. Assertion API: expect.js.