Skip to content

Commit 6e4a35f

Browse files
JonJon
authored andcommitted
1 parent ccbfd94 commit 6e4a35f

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
@@ -61,8 +61,6 @@ function login(password){
6161

6262
console.log("2. password " + login('test1234'));
6363

64-
65-
6664
/*
6765
* #3
6866
* Function - isGreaterThan
@@ -76,6 +74,14 @@ console.log("2. password " + login('test1234'));
7674
* Console.log your result.
7775
*/
7876

77+
function isGreaterThan(first, second){
78+
if(first > second){
79+
return true;
80+
}else{
81+
return false;
82+
}
83+
}
84+
console.log("3. isGreaterThan " + isGreaterThan(6, 5));
7985

8086

8187
/*
@@ -90,6 +96,16 @@ console.log("2. password " + login('test1234'));
9096
* Console.log your result.
9197
*/
9298

99+
function mustBeTrue(boo){
100+
if(boo === true){
101+
return true;
102+
}else{
103+
return false;
104+
}
105+
}
106+
console.log("4. mustBeTrue " + mustBeTrue(true));
107+
108+
93109

94110

95111
/*

0 commit comments

Comments
 (0)