Instantly share code, notes, and snippets.

What would you like to do?
function Dose() {
this.min = null;
this.max = null;
Dose.prototype = new Dose();
var drug_dose = new Dose();
drug_dose.min = 1; // OK
drug_dose.max = 'string'; // OK, but does not make sense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment