Create a gist now

Instantly share code, notes, and snippets.

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