Michael's superhero

i use the timer to refresh stamina and such, and im having trouble
figuring out how to test for that. i also have a function (reduceStamina) that I just can't get to work. it keeps saysing stamina is NaN for some reason
ah, i'd never heard of the options object. i'll have to look into that.
yea, that would probably be helpful


On Mon, Jul 7, 2014 at 3:24 PM, Aidan Feldman <notifications@github.com>
wrote:

> In js/super_hero.js:
>
> > @@ -1 +1,83 @@
> > -// var SuperHero = ...
> > +
> > +var SuperHero = function(name,heightInCms,weightInKgs,strength,toughness,speed,stamina,health){
>
> When you have this many options, you might want to accept them as an
> options object, but have defaults so they don't all need to be passed in.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/advanced-js/oop/pull/16/files#r14616508>.
>