Skip to content

Commit 3cfc724

Browse files
Kevin GuoKevin Guo
authored andcommitted
1 parent 543e28b commit 3cfc724

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

exercises.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ console.log(login("test1234"));
6969
function isGreaterThan(first, second){
7070
if(first > second)
7171
return true
72-
else
73-
return false
72+
// else
73+
// return false
7474

7575
}
76-
console.log(isGreaterThan(1,2));
76+
console.log(isGreaterThan(3,2));
77+
7778
/*
7879
* #4
7980
* Function - mustBeTrue
@@ -86,7 +87,11 @@ console.log(isGreaterThan(1,2));
8687
* Console.log your result.
8788
*/
8889

89-
90+
function mustBeTrue(boo){
91+
if(boo === true)
92+
return true
93+
}
94+
console.log(mustBeTrue(false));
9095

9196
/*
9297
* #5

0 commit comments

Comments
 (0)