Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord