Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Commit 4dc24cb

Browse files
committed
Mandatory 1 done
1 parent 8884116 commit 4dc24cb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

mandatory/1-fix-functions.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@
1010
1111
*/
1212

13-
function getMood() {
14-
let isHappy = true;
15-
16-
if (isHappy) {
13+
function getMood(happy) {
14+
if (happy) {
1715
return "I am happy";
1816
} else {
1917
return "I am not happy";
2018
}
2119
}
2220

2321
function greaterThan10(num) {
24-
let isBigEnough;
25-
26-
if (isBigEnough) {
22+
if (num > 10) {
2723
return "num is greater than 10";
2824
} else {
2925
return "num is not big enough";

0 commit comments

Comments
 (0)