We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7355aa commit b5a8685Copy full SHA for b5a8685
main.js
@@ -78,6 +78,7 @@ function bmiCalculator (weight, height) {
78
79
adultBtn.addEventListener("click", () => {
80
document.body.innerHTML = "";
81
+ document.body.append(mainHeading);
82
83
const nextPage1 = document.createElement("h1");
84
nextPage1.textContent = "Enter Your Height (cm):";
@@ -100,6 +101,7 @@ adultBtn.addEventListener("click", () => {
100
101
alert("Enter a height between 139.7 cm and 243.8 cm");
102
}
103
104
105
106
const nextPage2 = document.createElement("h1");
107
nextPage2.textContent = "Enter Your Weigh (kg):";
0 commit comments