Skip to content

Commit

Permalink
Done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvin-kariuki committed Jun 7, 2022
1 parent e696342 commit a7cc528
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
function scuberGreetingForFeet(){
function scuberGreetingForFeet(feet){
// Write your code here!
// let feet = 0;
if (feet <= 400){
return "This one is on me!"
} else if(feet >= 2000 && feet<= 2499) {
return "I will gladly take your thirty bucks."
} else {
return "No can do."

}
}

function ternaryCheckCity(){
function ternaryCheckCity(city){
// Write your code here!
return city === "NYC" ? "Ok, sounds good.":"No go.";

}

function switchOnCharmFromTip(){
function switchOnCharmFromTip(tip){
// Write your code here!
switch (tip){
case "generous":
return "Thank you so much.";
case "not as generous":
return "Thank you.";
default:
return "Bye.";
}

}

0 comments on commit a7cc528

Please sign in to comment.