Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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
  • Gregory Millan
    Gregory Millan
    3,719 Points

    Switch...What does the switch statement do exactly when entered within a function

    Posted February 21, 2016 10:35pm by Gregory Millan
    Gregory Millan
    3,719 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    1 Answer

  • Akos Turi
    Akos Turi
    7,517 Points

    i got en error message says "default will never be executed"

    Posted January 10, 2016 1:52pm by Akos Turi
    Akos Turi
    7,517 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    1 Answer

  • Akos Turi
    Akos Turi
    7,517 Points

    Default will never be executed

    Posted January 10, 2016 1:41pm by Akos Turi
    Akos Turi
    7,517 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    5 Answers

  • morgangrundy
    morgangrundy
    2,149 Points

    Getting error Expected ':' after 'case'. Any ideas?

    Posted December 4, 2015 11:26am by morgangrundy
    morgangrundy
    2,149 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    1 Answer

  • Amal Abualrahi
    PLUS
    Amal Abualrahi
    Courses Plus Student 3,905 Points

    WAIT! When to use an array?

    Posted October 15, 2015 9:31am by Amal Abualrahi
    Amal Abualrahi
    Courses Plus Student 3,905 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    0 Answers

  • Ryan Lail
    Ryan Lail
    4,386 Points

    Can you use string interpolation with enum?

    Posted August 13, 2015 9:03pm by Ryan Lail
    Ryan Lail
    4,386 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    2 Answers

  • Tim McEwan
    Tim McEwan
    19,537 Points

    i am getting tons of errors with this enums course does it need to be updated.

    Posted July 9, 2015 9:55pm by Tim McEwan
    Tim McEwan
    19,537 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    1 Answer

  • Will Feldman
    Will Feldman
    3,121 Points

    When every you are using a enum can you do the .value

    Posted June 9, 2015 9:12pm by Will Feldman
    Will Feldman
    3,121 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    0 Answers

  • lance samaria
    lance samaria
    3,642 Points

    Using a for-in loop with a switch statement

    Posted April 26, 2015 7:07am by lance samaria
    lance samaria
    3,642 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    16 Answers

  • Srinivasan Senthil
    Srinivasan Senthil
    2,266 Points

    Simple Question on enumeration - Please help.

    Posted February 27, 2015 6:06am by Srinivasan Senthil
    Srinivasan Senthil
    2,266 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    2 Answers

  • Arjun Amin
    Arjun Amin
    2,228 Points

    How does the computer know that the day is a string?

    Posted January 1, 2015 11:08am by Arjun Amin
    Arjun Amin
    2,228 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    3 Answers

  • Jason Hernandez Berland
    Jason Hernandez Berland
    1,575 Points

    Difference between an enum and a dictionary?

    Posted December 9, 2014 8:56pm by Jason Hernandez Berland
    Jason Hernandez Berland
    1,575 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    1 Answer

  • tchafob
    tchafob
    2,097 Points

    1:15: Error: Amit not found ! :D

    Posted November 25, 2014 10:16pm by tchafob
    tchafob
    2,097 Points
    • iOS
    • Swift Enums and Structs
    • Enums
    • What is an Enum?

    0 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