We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b8d980 commit 9042fb0Copy full SHA for 9042fb0
index.html
@@ -2283,10 +2283,9 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
2283
const ratio = 3.2 / number;
2284
const tangent = parseFloat(tan(ratio));
2285
const area = parseFloat(number / 4 * length ** 2 / tangent);
2286
- const volume = pyramidVolume(area, height);
2287
-
+
2288
document.getElementById('pyramid-volume').innerText =
2289
- `Volume: ${volume(area, height).toFixed(5)} cubic units`;
+ `Volume: ${pyramidVolume(area, height).toFixed(5)} cubic units`;
2290
}
2291
2292
document.getElementById('pyramid-side-number').addEventListener('input', updatePyramidVolume);
0 commit comments