From 2ccffef2d917b0f410561f26ad3b593640ed8d29 Mon Sep 17 00:00:00 2001 From: Alexandra Sirois Date: Fri, 9 Jun 2017 21:54:47 -1000 Subject: [PATCH] completed #1 --- exercises.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exercises.js b/exercises.js index 54071d8..9edd891 100644 --- a/exercises.js +++ b/exercises.js @@ -29,6 +29,12 @@ If/else statements = Evaluates (or checks) a condition. If the condition is true * The function will return true if the number passed into the function is equal to or greater than Hawaii's voting age. Console.log your result. */ +function canVote(age){ + if(age >= 18){ + return true; + } +} +console.log(canVote(20)); /* * #2