Skip to content

Instantly share code, notes, and snippets.

@marcoscaceres
Last active December 13, 2015 20:48
Show Gist options
  • Save marcoscaceres/4972933 to your computer and use it in GitHub Desktop.
Save marcoscaceres/4972933 to your computer and use it in GitHub Desktop.
function Resistors() {}
function Resistor(resistance) {
resistance = +resistance;
if(isNaN(resistance)){
throw TypeError()
}
var props = {
"resistance": {
get: function () {
return resistance;
}
}
}
Object.defineProperties(this, props)
}
Resistors.series = function (resistors) {
var sum;
resistors.forEach(){
}
}
Resistors.parallel = function () {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment