Skip to content

Commit 9042fb0

Browse files
authored
Update index.html
1 parent 3b8d980 commit 9042fb0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,10 +2283,9 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
22832283
const ratio = 3.2 / number;
22842284
const tangent = parseFloat(tan(ratio));
22852285
const area = parseFloat(number / 4 * length ** 2 / tangent);
2286-
const volume = pyramidVolume(area, height);
2287-
2286+
22882287
document.getElementById('pyramid-volume').innerText =
2289-
`Volume: ${volume(area, height).toFixed(5)} cubic units`;
2288+
`Volume: ${pyramidVolume(area, height).toFixed(5)} cubic units`;
22902289
}
22912290

22922291
document.getElementById('pyramid-side-number').addEventListener('input', updatePyramidVolume);

0 commit comments

Comments
 (0)