Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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