Skip to content

Commit 9ee26b8

Browse files
committed
Classes.js created starting functions.js
1 parent 18786a7 commit 9ee26b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

challenges/classes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copy and paste your prototype in here and refactor into class syntax.
2+
3+
// Test the volume and surfaceArea methods using console.log. If you're unsure what the actual volumes and surfaceAreas should be, Google is once again your best friend.
4+
5+
// STRETCH: Extend the base class PentagonalPyramid with a subclass called Pyramid. Find the formulas for volume and surfaceArea for regular pyramids and create those methods using dimension properties from PentagonalPyramid. Test your work by logging out the volume and surfaceArea.

0 commit comments

Comments
 (0)