Skip to content

Commit d954796

Browse files
committed
checkfive exercise
1 parent c9b37a6 commit d954796

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function checkFive(num){
2+
let result = '';
3+
if (num < 5){
4+
result = num + " is less than 5.";
5+
} else if (num === 5){
6+
result = num + " is equal to 5.";
7+
} else {
8+
result = num + " is greater than 5.";
9+
}
10+
11+
return result;
12+
}
13+
module.exports = checkFive;

0 commit comments

Comments
 (0)