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
  • Gloria Cornelius
    Gloria Cornelius
    302 Points

    else if statement

    Posted October 11, 2023 6:24pm by Gloria Cornelius
    Gloria Cornelius
    302 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • xczurymqdj
    xczurymqdj
    2,289 Points

    Im not sure where im going wrong please can someone help me

    Posted June 12, 2022 7:56pm by xczurymqdj
    xczurymqdj
    2,289 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    4 Answers

  • xczurymqdj
    xczurymqdj
    2,289 Points

    Im not sure what im doing wrong with my code. Could someone help me walk through it please?

    Posted June 10, 2022 5:55pm by xczurymqdj
    xczurymqdj
    2,289 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    2 Answers

  • Jane Yount
    Jane Yount
    4,522 Points

    How to figure out this question?

    Posted April 27, 2022 9:12pm by Jane Yount
    Jane Yount
    4,522 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • Alana Warson
    Alana Warson
    5,296 Points

    else if clause I cannot get this ... there is a small thing I'm missing...

    Posted February 19, 2021 12:29am by Alana Warson
    Alana Warson
    5,296 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    5 Answers

  • xajx
    xajx
    6,553 Points

    Why is my code wrong?

    Posted November 6, 2020 6:11am by xajx
    xajx
    6,553 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    3 Answers

  • Chris Hicks
    Chris Hicks
    2,876 Points

    add an else if clause basic javascript

    Posted August 19, 2020 5:16pm by Chris Hicks
    Chris Hicks
    2,876 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    3 Answers

  • Khatia Bagaturia
    Khatia Bagaturia
    2,050 Points

    Please explain to me what is my mistake ? I tried to write the code in all possible way it is taking long

    Posted July 26, 2020 2:11am by Khatia Bagaturia
    Khatia Bagaturia
    2,050 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • clifford dsouza
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    clifford dsouza
    Full Stack JavaScript Techdegree Student 1,755 Points

    Add an else if clause that tests if the isStudent variable is true. If it's true, set the value of the message variable

    Posted July 25, 2020 3:08pm by clifford dsouza
    .a{fill-rule:evenodd;}techdegree
    clifford dsouza
    Full Stack JavaScript Techdegree Student 1,755 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    2 Answers

  • Kathleen OKeife
    Kathleen OKeife
    1,960 Points

    What is wrong with this code?

    Posted May 13, 2020 8:23pm by Kathleen OKeife
    Kathleen OKeife
    1,960 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • Ryan Myers
    Ryan Myers
    6,606 Points

    not sure what is wrong here

    Posted April 20, 2020 3:47am by Ryan Myers
    Ryan Myers
    6,606 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • Matthew Grove
    Matthew Grove
    5,811 Points

    Add an else if clause that tests if the isStudent variable is true. If it's true, set the value of the message variable

    Posted April 19, 2020 5:54pm by Matthew Grove
    Matthew Grove
    5,811 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • SHAWNELL HARRISON
    SHAWNELL HARRISON
    16,282 Points

    Can you please help. I keep getting error message.THANKS

    Posted April 15, 2020 6:09pm by SHAWNELL HARRISON
    SHAWNELL HARRISON
    16,282 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    0 Answers

  • SHAWNELL HARRISON
    SHAWNELL HARRISON
    16,282 Points

    Can you please help. I keep getting error message.THANKS

    Posted April 15, 2020 6:09pm by SHAWNELL HARRISON
    SHAWNELL HARRISON
    16,282 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

  • Shaily Sharma
    Shaily Sharma
    1,431 Points

    if and else if statement

    Posted March 17, 2020 4:33am by Shaily Sharma
    Shaily Sharma
    1,431 Points
    • JavaScript
    • JavaScript Basics
    • Making Decisions in Your Code with Conditional Statements
    • Add an 'else if' Clause

    1 Answer

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