Skip to content

Instantly share code, notes, and snippets.

@maciejlew
Created March 24, 2016 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maciejlew/a2eb3798ec6867adc675 to your computer and use it in GitHub Desktop.
Save maciejlew/a2eb3798ec6867adc675 to your computer and use it in GitHub Desktop.
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