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")); /*