From 76d30e7d747d459f362cd5e5dd672cf897e9d9ae Mon Sep 17 00:00:00 2001 From: Dillon Sellars Date: Thu, 5 May 2022 19:07:05 -0400 Subject: [PATCH] Big changes --- bigmath2.js | 7 +++++++ shapes.js | 12 ++++++++++++ 2 files changed, 19 insertions(+) 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