diff --git a/exercises.js b/exercises.js index 21e5ab7..a1adb7c 100644 --- a/exercises.js +++ b/exercises.js @@ -252,9 +252,9 @@ console.log(evenStevens(3)) */ function daClub(cover,age){ if(cover>=21 && age>=21){ - return true + return "Welcome to the Legends Lounge" }else{ - return false + return "Chuck E Cheese is across the street" } } console.log(daClub(24,18)); @@ -268,10 +268,19 @@ console.log(daClub(24,18)); * @param Datatype: Boolean `thesis` * @return Datatype: String * - * If EITHER the number value is greater than or equal to 120 or the boolean value is true, then the function will return the message: "Congratulations on a job well done." Otherwise, return the message: "See you in summer school." + * If EITHER the number value is greater than or equal to 120 or the boolean value is true, then the function will + * return the message: "Congratulations on a job well done." Otherwise, return the message: "See you in summer school." * Console.log your result. */ +function graduation(credits, thesis){ + if(credits>=120 || thesis === true){ + return "Congratulation on a job well done" + }else{ + return "See you in summer school" + } +} +console.log(graduation(90, false)); /*