Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jkneedler solution #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JKneedler
Copy link

No description provided.

Jared Kneedler added 2 commits May 22, 2020 11:37
@@ -1,12 +1,27 @@
def get_letter_grade(integer)

#Put your code here!
if integer > 89
Copy link

@djlax805 djlax805 May 22, 2020

Choose a reason for hiding this comment

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

On that 90-100 scale eh? 😆 Nice job, in Ruby, you don't need to explicitly return values if the thing you are intending to return is the last line in the method/scope.

Other things to think about when you notice large conditionals are case statements, maybe try to update with one and see how those work and look.

Copy link

@djlax805 djlax805 left a comment

Choose a reason for hiding this comment

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

Just a little 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