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 Making Decisions in Your Code with Conditional Statements Conditional Statements and Operators Review

Hi, I am wondering why this statement isn't true... Is the following condition true or false? ( 'lion' > 'zebra' )

I am taking a quiz and it presented an incorrect answer statement when I said that this statement was true because "L" comes before "Z" in the alphabet. Am not understanding the question or is this quiz providing the wrong answer. Thanks so much in advance.

1 Answer

Hi Rhema,

Because L comes before Z in the alphabet, L is less than Z. Thinking a little deeper it may have something to do with ascii and the value assigned to different letters. 🤷🏾‍♂️