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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • 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.

    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.