We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db6b3c commit 3e6cc95Copy full SHA for 3e6cc95
Sprint-3/1-implement-and-rewrite-tests/implement/1-get-angle-type.js
@@ -12,7 +12,19 @@ function getAngleType(angle) {
12
return "Right angle";
13
}
14
// Run the tests, work out what Case 2 is testing, and implement the required code here.
15
- // Then keep going for the other cases, one at a time.
+ // Then keep going for the other cases, one at a time.
16
+ if (angle < 90) {
17
+ return "Acute angle";
18
+ }
19
+ if (angle > 90 && angle < 180) {
20
+ return "Obtuse angle";
21
22
+ if (angle === 180) {
23
+ return "Straight angle";
24
25
+ if (angle > 180 && angle < 360) {
26
+ return "Reflex angle";
27
28
29
30
// The line below allows us to load the getAngleType function into tests in other files.
0 commit comments