Skip to content

Commit

Permalink
Update boys.js
Browse files Browse the repository at this point in the history
added logs to debug height percentile
  • Loading branch information
StrongereCommerce authored Sep 26, 2023
1 parent a51e226 commit 7f86273
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/js/boys.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ function calculateFitForBoys(heightFeet, heightInches, weight, age) {
const percentilesWeight = weightDataBoys[ageKey];

const heightPercentile = findPercentile(heightIn, percentilesHeight);
console.log(`heightIn: ${heightIn}, percentilesHeight: ${percentilesHeight}`);
const weightPercentile = findPercentile(weight, percentilesWeight);
console.log(`weight: ${weight}, percentilesWeight: ${percentilesWeight}`);


const averagePercentile = (heightPercentile + weightPercentile) / 2;

Expand Down

0 comments on commit 7f86273

Please sign in to comment.