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
  • Abigail Puckett
    Abigail Puckett
    2,111 Points

    Displaying curly braces

    Posted December 4, 2023 1:35am by Abigail Puckett
    Abigail Puckett
    2,111 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Justyn Phearson
    Justyn Phearson
    2,886 Points

    Code is not working. Can't figure out why. Browser giving me an error msg.

    Posted January 17, 2023 1:33pm by Justyn Phearson
    Justyn Phearson
    2,886 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • James Summers
    James Summers
    704 Points

    can you put a conditional statement inside a conditional statement

    Posted May 25, 2022 8:41pm by James Summers
    James Summers
    704 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Adekite Parker
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Adekite Parker
    Full Stack JavaScript Techdegree Student 1,702 Points

    let correctNum = false;

    Posted November 20, 2021 8:14pm by Adekite Parker
    .a{fill-rule:evenodd;}techdegree
    Adekite Parker
    Full Stack JavaScript Techdegree Student 1,702 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • karina037
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karina037
    Full Stack JavaScript Techdegree Graduate 17,179 Points

    How let was re-assigned?

    Posted September 7, 2021 7:24pm by karina037
    .a{fill-rule:evenodd;}techdegree seal-36
    karina037
    Full Stack JavaScript Techdegree Graduate 17,179 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • royalcompass
    royalcompass
    4,758 Points

    About The String To Number Comparison

    Posted August 9, 2021 8:06am by royalcompass
    royalcompass
    4,758 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • deanna22
    deanna22
    520 Points

    Not showing as console log saying error with brackets?

    Posted August 2, 2021 5:30am by deanna22
    deanna22
    520 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Daniel Benisti
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Daniel Benisti
    Front End Web Development Techdegree Graduate 22,224 Points

    using only the boolean variable instead of the entire comparison?

    Posted July 12, 2021 4:57pm by Daniel Benisti
    .a{fill-rule:evenodd;}techdegree seal-36
    Daniel Benisti
    Front End Web Development Techdegree Graduate 22,224 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Kamarky Jimenez
    Kamarky Jimenez
    6,767 Points

    My console keeps printing the else statement even when i guess the correct number.

    Posted March 27, 2021 9:11am by Kamarky Jimenez
    Kamarky Jimenez
    6,767 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Ruobing Zhang
    Ruobing Zhang
    1,409 Points

    At 7:09 of the video, why you can just put line9 as: if ( correctGuess )?

    Posted January 16, 2021 12:48am by Ruobing Zhang
    Ruobing Zhang
    1,409 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    2 Answers

  • Catarina P
    Catarina P
    2,170 Points

    If you type false in the condition it appears "the condition is false". I don't understand, why and how?

    Posted December 30, 2020 2:52pm by Catarina P
    Catarina P
    2,170 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Keith Griffin
    Keith Griffin
    4,833 Points

    More efficient way of writing the code?

    Posted September 11, 2020 8:50pm by Keith Griffin
    Keith Griffin
    4,833 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • qiwrhmhopm
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    qiwrhmhopm
    Front End Web Development Techdegree Student 6,699 Points

    Is it possible to assign the number constant a random number between 1 and 10?

    Posted July 27, 2020 1:53pm by qiwrhmhopm
    .a{fill-rule:evenodd;}techdegree
    qiwrhmhopm
    Front End Web Development Techdegree Student 6,699 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Fabio Rimondi
    Fabio Rimondi
    1,856 Points

    When converting string to int using "+" sign, can this generate error if string is not a number?

    Posted July 3, 2020 9:19am by Fabio Rimondi
    Fabio Rimondi
    1,856 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • leosiu
    leosiu
    7,409 Points

    why using "let" in javaScript

    Posted July 2, 2020 12:46am by leosiu
    leosiu
    7,409 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    2 Answers

  • Max van den Berge
    Max van den Berge
    6,506 Points

    Hello, i have a question . is it common to have a second conditional statement? altought i m a beginner to JS. i never s

    Posted June 18, 2020 7:44pm by Max van den Berge
    Max van den Berge
    6,506 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    3 Answers

  • Matt Edgar
    Matt Edgar
    646 Points

    none of my videos will play

    Posted May 19, 2020 3:56pm by Matt Edgar
    Matt Edgar
    646 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Dylan Carter
    Dylan Carter
    1,046 Points

    Why is this method better than a just asking if their guess was 6 for the conditional statement?

    Posted May 14, 2020 11:51pm by Dylan Carter
    Dylan Carter
    1,046 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    2 Answers

  • Joseph Overton
    Joseph Overton
    4,234 Points

    = within a conditional statement.

    Posted April 30, 2020 9:22pm by Joseph Overton
    Joseph Overton
    4,234 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    2 Answers

  • Spencer Renfro
    PLUS
    Spencer Renfro
    Courses Plus Student 11,133 Points

    What does assigning a boolean value actually tell the computer?

    Posted April 27, 2020 11:48pm by Spencer Renfro
    Spencer Renfro
    Courses Plus Student 11,133 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    1 Answer

  • Maja Divkovic
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Maja Divkovic
    Front End Web Development Techdegree Graduate 13,920 Points

    True or False

    Posted March 28, 2020 10:10pm by Maja Divkovic
    .a{fill-rule:evenodd;}techdegree seal-36
    Maja Divkovic
    Front End Web Development Techdegree Graduate 13,920 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values

    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