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 trial

JavaScript JavaScript Basics (Retired) Making Decisions with Conditional Statements Review Conditional Statements and Comparison Operators

musab abdi
musab abdi
2,096 Points

it seems this quiz are wrong

i mean lion> zebra is correct because L come before Z yet the excercise says the oppisite

1 Answer

Daniel Gauthier
Daniel Gauthier
15,000 Points

Hey Musab,

The way letters get evaluated are whether they become before or after one another, so when looking at:

lion > zebra

The result will be false because the first letter of lion (l) comes before the first letter in zebra (z).

Meaning 'z' is greater than 'l' because it is 'higher' in the alphabet than 'l' is.

Assign a numerical value to each letter, with 'a' being 1 and 'z' being 26 and this will make more sense.

Good luck with the course!

musab abdi
musab abdi
2,096 Points

thank you deniel thank you