🤑 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

  • 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
  • Justice Trent
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Justice Trent
    Full Stack JavaScript Techdegree Graduate 15,487 Points

    confused about var itemToBuy

    Posted April 27, 2019 4:37pm by Justice Trent
    .a{fill-rule:evenodd;}techdegree seal-36
    Justice Trent
    Full Stack JavaScript Techdegree Graduate 15,487 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • handy christian
    handy christian
    2,899 Points

    I dont get what this question mean, can somebody help me to explain this question?

    Posted December 20, 2018 6:10am by handy christian
    handy christian
    2,899 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Michael Williams
    PLUS
    Michael Williams
    Courses Plus Student 8,059 Points

    This question should be written better.

    Posted November 4, 2018 2:16am by Michael Williams
    Michael Williams
    Courses Plus Student 8,059 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Maharshee Roy
    Maharshee Roy
    1,723 Points

    Why is this? Dont each of these have a 'thing' that runs?

    Posted September 8, 2018 8:55pm by Maharshee Roy
    Maharshee Roy
    1,723 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • yoav green
    yoav green
    8,611 Points

    Say you had a conditional statement with one if clause..." did not understand the question

    Posted June 23, 2018 3:01pm by yoav green
    yoav green
    8,611 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    2 Answers

  • Enemuo Felix
    Enemuo Felix
    1,895 Points

    Quiz

    Posted August 8, 2017 2:51pm by Enemuo Felix
    Enemuo Felix
    1,895 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    2 Answers

  • eddie chen
    eddie chen
    3,790 Points

    what does code block mean?

    Posted May 6, 2017 9:43pm by eddie chen
    eddie chen
    3,790 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    2 Answers

  • nathanielcusano
    nathanielcusano
    9,808 Points

    I don't understand why itemToBuy equals an empty string?

    Posted February 5, 2017 6:22pm by nathanielcusano
    nathanielcusano
    9,808 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • nxtstackhello
    nxtstackhello
    3,774 Points

    Comment out the two lines of code below using JavaScript's multi-line commenting syntax:

    Posted January 7, 2017 3:29am by nxtstackhello
    nxtstackhello
    3,774 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    What is a And operator and a or operator in Java-script?

    Posted July 20, 2016 3:29am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    2 Answers

  • Abir Ahmed
    PLUS
    Abir Ahmed
    Courses Plus Student 8,616 Points

    Why in the following code the first condition passed so only it's code ran? Can you please explain

    Posted May 21, 2016 2:44pm by Abir Ahmed
    Abir Ahmed
    Courses Plus Student 8,616 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Abir Ahmed
    PLUS
    Abir Ahmed
    Courses Plus Student 8,616 Points

    Why in the following code the first condition passed so only it's code ran? Can you please explain

    Posted May 21, 2016 2:44pm by Abir Ahmed
    Abir Ahmed
    Courses Plus Student 8,616 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Abir Ahmed
    PLUS
    Abir Ahmed
    Courses Plus Student 8,616 Points

    Why in the following code the first condition passed so only it's code ran? Can you please explain

    Posted May 21, 2016 2:44pm by Abir Ahmed
    Abir Ahmed
    Courses Plus Student 8,616 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Altamir Coelho
    Altamir Coelho
    1,088 Points

    Comment out the two lines of code below using JavaScript's multi-line commenting syntax:

    Posted November 3, 2015 8:10pm by Altamir Coelho
    Altamir Coelho
    1,088 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    3 Answers

  • Jiří Palas
    Jiří Palas
    4,543 Points

    How to pick a multi option?

    Posted August 29, 2015 10:52am by Jiří Palas
    Jiří Palas
    4,543 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

  • Robert Booth
    Robert Booth
    2,290 Points

    multi-line commenting syntax

    Posted July 23, 2015 5:33pm by Robert Booth
    Robert Booth
    2,290 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    2 Answers

  • Michael Desantis
    Michael Desantis
    14,015 Points

    Why does this question not have a place to type the second half of the answer?

    Posted February 10, 2015 2:06am by Michael Desantis
    Michael Desantis
    14,015 Points
    • JavaScript
    • JavaScript Basics (Retired)
    • Making Decisions with Conditional Statements
    • Review Else If Clauses and JavaScript Comments

    1 Answer

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.