You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: challenges/prototypes.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
3
3
// Task: You are to build a pentagonal pyramid that can return values for its volume as well as its surface areas. Follow the steps to achieve this.
4
4
5
-
// Step 1: Base Constructor -- You should create a constructor function names PentagonalPyramid that will accept properties for its length, width, and heights.
5
+
// Step 1: Base Constructor -- You should create a constructor function names PentagonalPyramid that will accept properties for its base edge, and heights.
6
6
7
7
// Step 2: Volume Method -- You should create a prototype for PentagonalPyramid that returns the volume of a pentagonal pyramid. Curious about the formula??? Use Google (A DEVELOPERS BEST FRIEND)
8
8
9
9
// Step 3: Surface Area Method -- You should create a prototype fro PentagonalPyramid that returns the surface area of a pentagonal pyramid. Curious about the formula??? Use Google (A DEVELOPERS BEST FRIEND)
10
10
11
11
// Step 4: New Object -- You should create a new object that uses PentagonalPyramid. Give it the length, width, and height.
12
12
13
-
// Test your volume and surfaceArea methods here using console.log
13
+
// Test your volume and surfaceArea methods here using console.log
0 commit comments