From ccbfd947597ebb8380bb0bae4cd440b0caeee8d8 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 8 Apr 2019 19:58:09 -1000 Subject: [PATCH] #2 --- exercises.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exercises.js b/exercises.js index ff80a78..d54be8d 100644 --- a/exercises.js +++ b/exercises.js @@ -51,6 +51,16 @@ console.log("1. canVote " + canVote(18)); * Console.log your result. */ +function login(password){ + if(password === 'test1234'){ + return 'Login Success!'; + }else{ + return 'Login Failed!' + } +} + +console.log("2. password " + login('test1234')); + /*