Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialzachary hatsis
1,072 PointsThis question is so vague, what are they asking here?
I don't get what they are asking. they're just asking to do a check if a is greater than b? but don't specify if the value should return true or false...
"a" < "b"
2 Answers
Gene Osborne
8,630 Points"a" is less than "b" because each character is assigned a number value designated by the character encoding you are using (Ruby uses UTF-8).
In this encoding system "a" has the value of 97 and "b" has the value of "98".
So, when you compare them, Ruby uses their number values to determine which is greater.
Kevin Korte
28,149 PointsYou're overthinking it. It's going to return either true or false, depending if a is greater than b. what it should return doesn't matter.
Currently, you've written that string a is less than string b. What it wants you to write is variable a greater than variable b. You're very close, you just need to adjust your answer a bit.