From c329dc402d53a4c37bf1bfda99d04fce8b2ad856 Mon Sep 17 00:00:00 2001 From: Reese Akamine Date: Mon, 12 Feb 2018 19:10:03 -1000 Subject: [PATCH] mission 4 --- exercise.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exercise.js b/exercise.js index 892318d..6b33e4e 100644 --- a/exercise.js +++ b/exercise.js @@ -21,8 +21,18 @@ Create a function that will add a new element into an array.*/ /*Mission 4: Team Member: Reese + Create a function that will verify entry for a club. Patrons must be 22 and over to be admitted into the club.*/ +function clubCheck(age){ + if(age >= 22){ + return true; + }else{ + return false; + } +} +console.log(clubCheck(28)); + /*Mission 5: Team Member: Jace