From 1f745e35e368f3c408ff52f407f2671417eb32f7 Mon Sep 17 00:00:00 2001 From: Alexandra Sirois Date: Fri, 9 Jun 2017 22:01:14 -1000 Subject: [PATCH] completed #2 --- exercises.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exercises.js b/exercises.js index 9edd891..bb7de30 100644 --- a/exercises.js +++ b/exercises.js @@ -48,6 +48,12 @@ console.log(canVote(20)); * Console.log your result. */ +function login(password){ + if(password === "test1234"){ + return "Login Success!"; + } +} +console.log(login("test1234")); /* * #3