From 256930cce24983a4a0f9463ed59bd3d2c606780a Mon Sep 17 00:00:00 2001 From: George Kailiwai Date: Sat, 9 Jun 2018 21:51:38 -1000 Subject: [PATCH] code for #2 --- exercises.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exercises.js b/exercises.js index 0ce6c5e..a47dd1a 100644 --- a/exercises.js +++ b/exercises.js @@ -47,6 +47,12 @@ console.log(canVote(21)); * The function will return the message: "Login Success!", if the string passed into the function is "test1234" * Console.log your result. */ +function login(password) { + if(password === "test1234") { + return "Login Success!" + } +} +console.log(login("test1234")); /*