Skip to content

Conversation

@nkp521
Copy link

@nkp521 nkp521 commented May 5, 2025

Completed phase-1-control-flow-lab
Screenshot 2025-05-05 at 2 39 14 PM

Copy link

@stephenmckeon stephenmckeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job!

Comment on lines +1 to +17
function scuberGreetingForFeet(feet){
if (feet <= 400){
return 'This one is on me!'
}
else {
if (feet <= 2000){
return 'That will be twenty bucks.'
}
else {
if (feet <= 2500){
return 'I will gladly take your thirty bucks.'
}
else {
return 'No can do.'
}
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have extra time, trying giving this a refactor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants