From 99854953a258a9efafb0673c4642716ad7eb4436 Mon Sep 17 00:00:00 2001 From: Jess Manapul Date: Fri, 8 Feb 2019 20:55:48 -1000 Subject: [PATCH] completed #2 --- exercises.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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