✨ 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
    • Making Decisions in Your Code with Conditional Statements
    • Boolean Values
    • Close
  • Abigail Puckett
    Abigail Puckett
    2,111 Points

    Displaying curly braces

    Posted on Dec 4, 2023 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 on Jan 17, 2023 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 on May 25, 2022 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 on Nov 20, 2021 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 on Sep 7, 2021 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 on Aug 9, 2021 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 on Aug 2, 2021 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 on Jul 12, 2021 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 on Mar 27, 2021 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 on Jan 16, 2021 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 on Dec 30, 2020 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 on Sep 11, 2020 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 on Jul 27, 2020 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 on Jul 3, 2020 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 on Jul 2, 2020 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 on Jun 18, 2020 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 on May 19, 2020 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 on May 14, 2020 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 on Apr 30, 2020 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 on Apr 27, 2020 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 on Mar 28, 2020 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.

    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.