Skip to content

Commit be4c2d7

Browse files
Djavan CackleyDjavan Cackley
authored andcommitted
exercise 2 compeleted
1 parent 8d9b4d1 commit be4c2d7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

exercises.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ console.log('test')
4848
* Console.log your result.
4949
*/
5050

51+
function login(password){
52+
if(password === "test1234"){
53+
return "Login Success!"; }
54+
}
55+
56+
console.log(login("test1234"))
5157

5258
/*
5359
* #3
@@ -62,6 +68,14 @@ console.log('test')
6268
* Console.log your result.
6369
*/
6470

71+
function isGreaterThan(first, second){
72+
if (first > second){
73+
return true;
74+
}
75+
76+
}
77+
78+
console.log(isGreaterThan(3, 1));
6579

6680

6781
/*

0 commit comments

Comments
 (0)