Skip to main content

🚀 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
  • Keller FREAKhouse
    Keller FREAKhouse
    10,633 Points

    Add a conditional statement that tests if the value in variable a is greater than the value in variable b. If it is, log

    Posted November 8, 2024 4:30pm by Keller FREAKhouse
    Keller FREAKhouse
    10,633 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Anna Bazileeva
    Anna Bazileeva
    1,249 Points

    challenge task 1

    Posted September 18, 2023 3:59am by Anna Bazileeva
    Anna Bazileeva
    1,249 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Fidelis Chime
    Fidelis Chime
    6,077 Points

    conditional statement

    Posted October 7, 2022 11:07pm by Fidelis Chime
    Fidelis Chime
    6,077 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    2 Answers

  • Gil Noyman
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Gil Noyman
    Full Stack JavaScript Techdegree Student 13,421 Points

    Types error

    Posted February 16, 2022 4:05am by Gil Noyman
    .a{fill-rule:evenodd;}techdegree
    Gil Noyman
    Full Stack JavaScript Techdegree Student 13,421 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Tom Galkov
    Tom Galkov
    4,870 Points

    I don't understand this

    Posted January 4, 2022 11:52pm by Tom Galkov
    Tom Galkov
    4,870 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Ricky Redman
    Ricky Redman
    7,520 Points

    difficulty completing this conditional statement

    Posted July 26, 2021 3:54pm by Ricky Redman
    Ricky Redman
    7,520 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Angelica Islas
    Angelica Islas
    4,082 Points

    What did I do wrong?

    Posted July 7, 2021 12:21am by Angelica Islas
    Angelica Islas
    4,082 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • angilen pineda
    angilen pineda
    2,706 Points

    a>b

    Posted April 7, 2021 7:58am by angilen pineda
    angilen pineda
    2,706 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • james presley
    james presley
    6,154 Points

    can someone show me whats wrong with my code or what im missing

    Posted March 18, 2021 1:17pm by james presley
    james presley
    6,154 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Samuel Bueno
    Samuel Bueno
    767 Points

    conditional stetament test

    Posted January 26, 2021 7:38pm by Samuel Bueno
    Samuel Bueno
    767 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    3 Answers

  • Samuel Bueno
    Samuel Bueno
    767 Points

    conditional statement test

    Posted January 26, 2021 7:34pm by Samuel Bueno
    Samuel Bueno
    767 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    2 Answers

  • Samuel Bueno
    Samuel Bueno
    767 Points

    conditional statement

    Posted January 26, 2021 6:44pm by Samuel Bueno
    Samuel Bueno
    767 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Bob Szesnat
    Bob Szesnat
    6,477 Points

    Hi, I am wondering why this isn't correct, what am I missing?

    Posted January 16, 2021 6:09pm by Bob Szesnat
    Bob Szesnat
    6,477 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Kamran Hussain
    Kamran Hussain
    396 Points

    Thought I did this correctly as well? Apparently not?

    Posted December 1, 2020 10:59pm by Kamran Hussain
    Kamran Hussain
    396 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • John Fulstone
    PLUS
    John Fulstone
    Courses Plus Student 762 Points

    Add a conditional statement that tests if the value in variable a is greater than the value in variable b. If it is, log

    Posted October 8, 2020 8:30pm by John Fulstone
    John Fulstone
    Courses Plus Student 762 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    2 Answers

  • Michael Gilley
    Michael Gilley
    6,124 Points

    Not sure what I am doing wrong

    Posted August 7, 2020 11:18am by Michael Gilley
    Michael Gilley
    6,124 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    2 Answers

  • Jaimin Patel
    Jaimin Patel
    9,020 Points

    Idk why my code is not working.

    Posted June 3, 2020 7:03pm by Jaimin Patel
    Jaimin Patel
    9,020 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • KJ Lee
    KJ Lee
    1,059 Points

    What would the final code be here?

    Posted April 30, 2020 3:27am by KJ Lee
    KJ Lee
    1,059 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    2 Answers

  • Alphonso Tippie II
    Alphonso Tippie II
    2,454 Points

    else { console.log('a is NOT greater then b'); }

    Posted April 20, 2020 1:46am by Alphonso Tippie II
    Alphonso Tippie II
    2,454 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    1 Answer

  • Naiyana Williams
    Naiyana Williams
    9,932 Points

    I'm getting an error saying to make sure I am writing the conditional statement correctly. What am I missing?

    Posted April 17, 2020 11:10pm by Naiyana Williams
    Naiyana Williams
    9,932 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    3 Answers

  • Courage Ngonidzaishe Moyosvi
    Courage Ngonidzaishe Moyosvi
    28,998 Points

    Add a conditional statement that tests if the value in variable a is greater than the value in variable b

    Posted March 20, 2020 2:15pm by Courage Ngonidzaishe Moyosvi
    Courage Ngonidzaishe Moyosvi
    28,998 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Use Comparison Operators

    3 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