Skip to content

Commit

Permalink
completed #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kinwail committed Jun 12, 2018
1 parent 6b1c612 commit 17abce3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));


/*
Expand Down

0 comments on commit 17abce3

Please sign in to comment.