Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bigmath2.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ function superNewStuff() {
return 1 + 1;
}

function superNewStuffDeluxe() {
// foo
// foo
// foo
return 1 + 2;
}

function isPrime(num) {
if (num === 2) {
return true;
Expand Down
12 changes: 12 additions & 0 deletions shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ class Circle {
return Math.Pi * squared(this.radius)
}
}

class Trapezoid {
constructor(a, b, height) {
this.a = a;
this.b = b;
this.height = height;
}

getArea() {
return .5 * (a + b) * h;
}
}