-
-
Notifications
You must be signed in to change notification settings - Fork 337
Expand file tree
/
Copy pathget-angle-type.js
More file actions
27 lines (20 loc) · 834 Bytes
/
get-angle-type.js
File metadata and controls
27 lines (20 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Implement a function getAngleType
// Acceptance criteria:
// Given an angle in degrees,
// When the function getAngleType is called with this angle,
// Then it should:
// Identify Right Angles:
// When the angle is exactly 90 degrees,
// Then the function should return "Right angle"
// Identify Acute Angles:
// When the angle is less than 90 degrees,
// Then the function should return "Acute angle"
// Identify Obtuse Angles:
// When the angle is greater than 90 degrees and less than 180 degrees,
// Then the function should return "Obtuse angle"
// Identify Straight Angles:
// When the angle is exactly 180 degrees,
// Then the function should return "Straight angle"
// Identify Reflex Angles:
// When the angle is greater than 180 degrees and less than 360 degrees,
// Then the function should return "Reflex angle"