From 7f86273fddb9fadeafbc3325d6d1a4e35f084680 Mon Sep 17 00:00:00 2001 From: StrongereCommerce <86730095+StrongereCommerce@users.noreply.github.com> Date: Tue, 26 Sep 2023 07:58:24 -0400 Subject: [PATCH] Update boys.js added logs to debug height percentile --- assets/js/boys.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/boys.js b/assets/js/boys.js index a70829d..3849eed 100644 --- a/assets/js/boys.js +++ b/assets/js/boys.js @@ -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;