Skip to content

Commit 8db013a

Browse files
Jace MitsukaJace Mitsuka
authored andcommitted
1 parent e1e4331 commit 8db013a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

exercises.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,15 @@ console.log(kenny);
7171
* The function will return true if the first number is greater than the second.
7272
* Console.log your result.
7373
*/
74-
74+
function isGreaterThan(first, second){
75+
if(first > second){
76+
return true
77+
}else{
78+
return false
79+
}
80+
}
81+
var fiyah = isGreaterThan(3, 1)
82+
console.log(fiyah);
7583

7684

7785
/*
@@ -86,7 +94,15 @@ console.log(kenny);
8694
* Console.log your result.
8795
*/
8896

89-
97+
function mustBeTrue(boo){
98+
if(boo === true){
99+
return true
100+
}else{
101+
return false
102+
}
103+
}
104+
var poyodaboyo = mustBeTrue(null);
105+
console.log(poyodaboyo);
90106

91107
/*
92108
* #5

0 commit comments

Comments
 (0)