diff --git a/bigmath2.js b/bigmath2.js index c3fda29..07f0637 100644 --- a/bigmath2.js +++ b/bigmath2.js @@ -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; diff --git a/shapes.js b/shapes.js index 20df403..70643d8 100644 --- a/shapes.js +++ b/shapes.js @@ -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; + } +} \ No newline at end of file