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

🤑 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

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

  • 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
    • Showing results for:
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators
    • Close
  • Robert Rydlewski
    Robert Rydlewski
    3,828 Points

    ('apple' < 'bear' ) TRUE ... The author claim this statement is true because a is before b. (2:38)

    Posted on May 22, 2019 by Robert Rydlewski
    Robert Rydlewski
    3,828 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    4 Answers

  • Jasmin chang
    Jasmin chang
    3,342 Points

    Because the first letter of the string on the left, the A in apple,
comes before the first letter of the second string

    Posted on Feb 18, 2019 by Jasmin chang
    Jasmin chang
    3,342 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    3 Answers

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    Comparing "number" and "letter"

    Posted on Mar 31, 2018 by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    1 Answer

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    String and Number

    Posted on Jul 7, 2017 by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    2 Answers

  • Eric Tirado
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Eric Tirado
    iOS Development Techdegree Student 7,036 Points

    So is it ok to use the '==' operator in cases such as form-validation where the answer is not case sensitive?

    Posted on Jan 27, 2016 by Eric Tirado
    .a{fill-rule:evenodd;}techdegree
    Eric Tirado
    iOS Development Techdegree Student 7,036 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    3 Answers

  • Shezan Kazi
    Shezan Kazi
    10,807 Points

    string.includes Method

    Posted on Aug 23, 2015 by Shezan Kazi
    Shezan Kazi
    10,807 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    3 Answers

  • Michael Plemmons
    Michael Plemmons
    9,393 Points

    converting input before comparing.

    Posted on Jul 30, 2015 by Michael Plemmons
    Michael Plemmons
    9,393 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    1 Answer

  • Gary Calhoun
    Gary Calhoun
    10,317 Points

    So is there ever a scenario when we would use the == and !=?

    Posted on Jul 15, 2015 by Gary Calhoun
    Gary Calhoun
    10,317 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    5 Answers

  • Iliya Narsiya
    Iliya Narsiya
    3,387 Points

    difference between != and !==

    Posted on Apr 28, 2015 by Iliya Narsiya
    Iliya Narsiya
    3,387 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    4 Answers

  • Naivedya Bansal
    Naivedya Bansal
    5,483 Points

    difference between == and ===

    Posted on Mar 10, 2015 by Naivedya Bansal
    Naivedya Bansal
    5,483 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    4 Answers

  • Brian van Vlymen
    Brian van Vlymen
    12,637 Points

    comparison operator strings. true or false ? A < a ? which one?

    Posted on Jan 4, 2015 by Brian van Vlymen
    Brian van Vlymen
    12,637 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    2 Answers

  • Ryan Heuer
    Ryan Heuer
    1,230 Points

    Comparison Operator

    Posted on Nov 30, 2014 by Ryan Heuer
    Ryan Heuer
    1,230 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    1 Answer

  • Cesar Marroquin
    Cesar Marroquin
    10,520 Points

    Great Video

    Posted on Nov 2, 2014 by Cesar Marroquin
    Cesar Marroquin
    10,520 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Comparison Operators

    5 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.