Skip to content

Commit 18786a7

Browse files
committed
Prototypes.js made
1 parent 42c552d commit 18786a7

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

challenges/classes.js

Whitespace-only changes.

challenges/functions.js

Whitespace-only changes.

challenges/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
8+
<title>Jays JavaScript Challenge</title>
9+
10+
<script src="objects-arrays.js"></script>
11+
<script src="functions.js"></script>
12+
<script src="prototypes.js"></script>
13+
<script src="classes.js"></script>
14+
</head>
15+
16+
<body>
17+
<h1>This is Jays JavaScript Challenge! Make sure that your work is checked in the console!</h1>
18+
</body>
19+
</html>

challenges/objects-arrays.js

Whitespace-only changes.

challenges/prototypes.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* ---- LETS PRACTICE PROTOTYPES ---- */
2+
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+
5+
// Step 1: Base Constructor -- You should create a constructor function names PentagonalPyramid that will accept properties for its length, width, and heights.
6+
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+
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+
11+
// Step 4: New Object -- You should create a new object that uses PentagonalPyramid. Give it the length, width, and height.
12+
13+
// Test your volume and surfaceArea methods here using console.log

0 commit comments

Comments
 (0)