The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
// Total Daily Energy Expenditure | |
function TDEE (data) { | |
this.weight = data.weight || 60 | |
this.height = data.height || 180 | |
this.age = data.age || 20 | |
this.sex = data.sex || 'male' | |
this.bodyType = data.bodyType || 'ectomorph' | |
this.numberOfWorkouts = data.numberOfWorkouts || 3 | |
this.durationOfWorkout = data.durationOfWorkout || 45 | |
this.ratios = data.ratios || { |