diff --git a/exercises.js b/exercises.js index 0fe35c0..0525801 100644 --- a/exercises.js +++ b/exercises.js @@ -50,7 +50,16 @@ console.log(canVote(18)); * Console.log your result. */ +function login (password) { + if (password === "test1234") { + return "Login Success!"; + } else { + return "Login failed."; + } +} +console.log(login('test1234')); +console.log(login('1234test')); /* * #3