🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Swan The Human
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points

    The lesson said you don't need a semicolon in Conditional Statements but in this challenge they are there. Enlighten me?

    Posted June 10, 2019 10:32pm by Swan The Human
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • Dextane Rimmer
    Dextane Rimmer
    1,873 Points

    I chose true for this question, because 'l' comes before 'z'. Could I get an explanation as to why that answer is wrong?

    Posted May 16, 2019 7:04pm by Dextane Rimmer
    Dextane Rimmer
    1,873 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    2 Answers

  • Jhuan Pressley
    Jhuan Pressley
    647 Points

    How can ( 'lion' > 'zebra ') be false when ( 'apple '> 'bear ') is true? they are the same as L is before Z and A>B.

    Posted November 22, 2018 6:21am by Jhuan Pressley
    Jhuan Pressley
    647 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    3 Answers

  • Mirali Mirzayev
    Mirali Mirzayev
    1,980 Points

    Conditional Statements

    Posted September 16, 2018 11:17pm by Mirali Mirzayev
    Mirali Mirzayev
    1,980 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    3 Answers

  • Matt Leblanc
    Matt Leblanc
    2,100 Points

    If "l" comes before "z" how is "lion" not greater than "zebra"?

    Posted April 24, 2018 8:27pm by Matt Leblanc
    Matt Leblanc
    2,100 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    3 Answers

  • niels Lostaunau
    niels Lostaunau
    638 Points

    !== and != whats the difference

    Posted February 21, 2018 11:09pm by niels Lostaunau
    niels Lostaunau
    638 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • Andy tran
    Andy tran
    7,112 Points

    Comparison of two strings

    Posted February 4, 2018 5:50pm by Andy tran
    Andy tran
    7,112 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • Hunter Shaw
    Hunter Shaw
    2,187 Points

    How is 'lion' not greater than 'zebra'? In the example he used in the video he used 'apple' is > (some b word).

    Posted December 10, 2017 11:28pm by Hunter Shaw
    Hunter Shaw
    2,187 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    2 Answers

  • Alicia Oaks
    Alicia Oaks
    1,291 Points

    ('lion' > 'zebra') should be true because 'l' comes before 'z' in the alphabet...or am I not understanding correctly?

    Posted August 24, 2017 3:39pm by Alicia Oaks
    Alicia Oaks
    1,291 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • amyzhang3
    amyzhang3
    914 Points

    When a browser runs the code listed below, what will the user see?

    Posted January 27, 2017 2:32am by amyzhang3
    amyzhang3
    914 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    2 Answers

  • Brandon Copeland
    Brandon Copeland
    1,011 Points

    How is the string 'lion' not greater than the string 'zebra' being that L comes before Z?

    Posted December 10, 2016 2:58am by Brandon Copeland
    Brandon Copeland
    1,011 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • musab abdi
    musab abdi
    2,096 Points

    it seems this quiz are wrong

    Posted August 21, 2016 2:08pm by musab abdi
    musab abdi
    2,096 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • chris eaton
    chris eaton
    1,159 Points

    clarification of comparisons of strings

    Posted May 15, 2016 3:05pm by chris eaton
    chris eaton
    1,159 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • Omar Farag
    Omar Farag
    4,573 Points

    Is this a bug?

    Posted April 27, 2016 8:49pm by Omar Farag
    Omar Farag
    4,573 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    1 Answer

  • Mike Me
    Mike Me
    5,148 Points

    comparison operatings

    Posted January 2, 2016 10:21am by Mike Me
    Mike Me
    5,148 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    2 Answers

  • Daniel Hildreth
    Daniel Hildreth
    16,170 Points

    How does the > symbol work with alphabetical strings in JavaScript Basics Track Comparison Operators Course?

    Posted May 31, 2015 4:32am by Daniel Hildreth
    Daniel Hildreth
    16,170 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    4 Answers

  • Sean Ford
    Sean Ford
    9,581 Points

    Weren't we told not to use semicolons in conditional statements?

    Posted April 27, 2015 5:14pm by Sean Ford
    Sean Ford
    9,581 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    2 Answers

  • Tim Forman
    Tim Forman
    8,486 Points

    In the conditional statement 'lion' > 'zebra' why does the quiz say it's false?

    Posted April 19, 2015 10:43pm by Tim Forman
    Tim Forman
    8,486 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Conditional Statements and Comparison Operators

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.