File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ function login(password){
6161
6262console . 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/*
You can’t perform that action at this time.
0 commit comments