diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..bd4e63d Binary files /dev/null and b/.DS_Store differ diff --git a/geom.js b/geom.js index d942747..59a438d 100644 --- a/geom.js +++ b/geom.js @@ -3,7 +3,13 @@ class Rectangle { this.length = length; this.width = width; } + area() { + console.log(this.width * this.length); + } } +let square = new Rectangle(10, 10); + + class Triangle { @@ -12,7 +18,13 @@ class Triangle { this.sideB = sideB; this.sideC = sideC; } + area(){ + console.log(this.sideA, this.sideB, this.sideC); + } } +let equilateral = new Triangle() +let isosceles = new Triangle() +let obtuse = new Triangle() class LineSegment { @@ -29,4 +41,4 @@ module.exports = { Rectangle: Rectangle, Triangle: Triangle, LineSegment: LineSegment -} +} \ No newline at end of file diff --git a/pull_request_template.md b/pull_request_template.md index a911ef9..7491a71 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -1,14 +1,15 @@ ### How difficult did you find this (0 - 10)? (0 very easy, 10 very difficult) - +4 ### How long did it take? - +Usually everytime when i try to solve a problem, it takes me too much time to figure out how to solve it, and i fear this is my greatest weakness. ### Was there anything that you struggled with? If so, what? - +Not really but i couldnt finish with the homework because the time is getting late and i didnt want to spend the night. (sorry) ### Is there anything that you would like some further information on? - +The homework is very clear and smooth. Thank you! ### Do you have any suggestions to improve this assignment? +Non