Skip to content

Commit

Permalink
Update boys.js
Browse files Browse the repository at this point in the history
added logs
  • Loading branch information
StrongereCommerce authored Sep 18, 2023
1 parent 3ea75a5 commit 0d82517
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/boys.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function calculateFitForBoys(heightFeet, heightInches, weight, age) {
const heightIn = heightFeet * 12 + heightInches;
const ageKey = age + " years";

console.log("heightIn",heightIn,"ageKey",ageKey);

// Check if the age-based percentiles exist
if (!heightDataBoys[ageKey] || !weightDataBoys[ageKey]) {
console.error(`No data available for age ${age}`);
Expand Down

0 comments on commit 0d82517

Please sign in to comment.