From 20a52d7ee592e387606b29e0784c715bfb79de87 Mon Sep 17 00:00:00 2001 From: Kevin Guo Date: Fri, 11 Jan 2019 21:43:18 -1000 Subject: [PATCH] #2 --- exercises.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exercises.js b/exercises.js index a563163..a2be187 100644 --- a/exercises.js +++ b/exercises.js @@ -48,7 +48,11 @@ console.log(canVote(18)); * Console.log your result. */ - +function login(password){ + if(password === 'test1234') + return 'Login Success!' +} +console.log(login("test1234")); /* * #3 * Function - isGreaterThan