Skip to content

Conversation

@JKneedler
Copy link

No description provided.

Jared Kneedler added 2 commits May 22, 2020 11:37
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