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.

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

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

  • 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
  • jc laurent
    jc laurent
    6,351 Points

    I'm gonna North again I guess

    Posted October 19, 2016 4:10am by jc laurent
    jc laurent
    6,351 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    2 Answers

  • Emily Kolar
    Emily Kolar
    2,787 Points

    "You cannot include a control transfer statement in the else clause of a guard statement" Explanation

    Posted September 13, 2016 10:04pm by Emily Kolar
    Emily Kolar
    2,787 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Recap: Enumerations and Optionals

    1 Answer

  • Emily Kolar
    Emily Kolar
    2,787 Points

    Can someone recap the difference between Associated value and Raw Value in an enum?

    Posted September 13, 2016 10:02pm by Emily Kolar
    Emily Kolar
    2,787 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Recap: Enumerations and Optionals

    1 Answer

  • boris said
    boris said
    3,607 Points

    I am having problem with code challenge where it says I need to use the enum initializer. What do I do differently?

    Posted September 12, 2016 1:31pm by boris said
    boris said
    3,607 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Initializing With Raw Values

    1 Answer

  • Kevin Gutowski
    Kevin Gutowski
    4,082 Points

    Unsure about for loop

    Posted June 26, 2016 6:39pm by Kevin Gutowski
    Kevin Gutowski
    4,082 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enumerations With Raw Values

    1 Answer

  • Kjetil Korsveien
    Kjetil Korsveien
    1,713 Points

    Method that´s not best

    Posted June 9, 2016 1:30pm by Kjetil Korsveien
    Kjetil Korsveien
    1,713 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Optional Chaining

    1 Answer

  • shane reichefeld
    PLUS
    shane reichefeld
    Courses Plus Student 2,232 Points

    I dont understand whats im supposed to do?

    Posted June 7, 2016 3:30am by shane reichefeld
    shane reichefeld
    Courses Plus Student 2,232 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Paul Je
    Paul Je
    4,435 Points

    So Close..

    Posted May 25, 2016 9:01pm by Paul Je
    Paul Je
    4,435 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Will Van de Walle
    Will Van de Walle
    2,352 Points

    Help on the code challenge?

    Posted May 18, 2016 8:44pm by Will Van de Walle
    Will Van de Walle
    2,352 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    3 Answers

  • Nikita Voloboev
    Nikita Voloboev
    4,816 Points

    I'm not really sure why this code doesn't get accepted, can someone help me see what is wrong with it?

    Posted May 15, 2016 6:25pm by Nikita Voloboev
    Nikita Voloboev
    4,816 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Darcy Phillips
    Darcy Phillips
    4,087 Points

    Why is this answer false?

    Posted May 10, 2016 5:35am by Darcy Phillips
    Darcy Phillips
    4,087 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Recap: Enumerations and Optionals

    2 Answers

  • MINJI KIM
    MINJI KIM
    1,905 Points

    what's wrong with the code?

    Posted April 7, 2016 9:20am by MINJI KIM
    MINJI KIM
    1,905 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Faradja Nondo
    Faradja Nondo
    1,485 Points

    Whats the difference between an enum's stored property's default value and rawValue?

    Posted March 30, 2016 5:17am by Faradja Nondo
    Faradja Nondo
    1,485 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Initializing With Raw Values

    2 Answers

  • Faradja Nondo
    Faradja Nondo
    1,485 Points

    Can we use a guard statement to instantiate an enum? If no why not?

    Posted March 30, 2016 4:54am by Faradja Nondo
    Faradja Nondo
    1,485 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Initializing With Raw Values

    1 Answer

  • Cody Adkins
    Cody Adkins
    7,260 Points

    Having trouble with code challenge. Can someone help?

    Posted March 25, 2016 9:09pm by Cody Adkins
    Cody Adkins
    7,260 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Anjali Pasupathy
    Anjali Pasupathy
    2,017 Points

    Why do if case statements use the assignment symbol rather than the equality symbol?

    Posted February 22, 2016 8:46pm by Anjali Pasupathy
    Anjali Pasupathy
    2,017 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Pattern Matching With Enums

    2 Answers

  • Nicholas Laughter
    Nicholas Laughter
    2,136 Points

    What am I missing?

    Posted February 17, 2016 9:13pm by Nicholas Laughter
    Nicholas Laughter
    2,136 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • meir waizman
    meir waizman
    13,827 Points

    Why are you using one = instead of == when comparing in the if statement?

    Posted February 4, 2016 6:12am by meir waizman
    meir waizman
    13,827 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Nil Coalescing Operator

    3 Answers

  • Melissa Allgeier
    Melissa Allgeier
    13,564 Points

    Enums and Optionals, Enums with Raw Values Challenge

    Posted January 30, 2016 7:46pm by Melissa Allgeier
    Melissa Allgeier
    13,564 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    7 Answers

  • Khambrel Davis
    Khambrel Davis
    24,572 Points

    What in tarnations could be wrong with my code? Enumerations and Optionals!

    Posted December 25, 2015 3:14pm by Khambrel Davis
    Khambrel Davis
    24,572 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • andrew naeve
    andrew naeve
    11,503 Points

    Can't tell what this question is asking

    Posted December 21, 2015 9:49pm by andrew naeve
    andrew naeve
    11,503 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    1 Answer

  • Martin Wildfeuer
    PLUS
    Martin Wildfeuer
    Courses Plus Student 11,071 Points

    Typo in Assignment

    Posted December 7, 2015 8:17pm by Martin Wildfeuer
    Martin Wildfeuer
    Courses Plus Student 11,071 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    0 Answers

  • Woongshik Choi
    Woongshik Choi
    42,387 Points

    What's wrong on my code?

    Posted December 6, 2015 12:03am by Woongshik Choi
    Woongshik Choi
    42,387 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    0 Answers

  • Woongshik Choi
    Woongshik Choi
    42,387 Points

    What's wrong on my code?

    Posted December 6, 2015 12:03am by Woongshik Choi
    Woongshik Choi
    42,387 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    2 Answers

  • ALEKSANDR KONAKOV
    PLUS
    ALEKSANDR KONAKOV
    Courses Plus Student 2,555 Points

    Works in a playground - doesn't work here

    Posted December 4, 2015 12:00pm by ALEKSANDR KONAKOV
    ALEKSANDR KONAKOV
    Courses Plus Student 2,555 Points
    • iOS
    • Swift 2.0 Enumerations and Optionals
    • Objects and Optionals
    • Enums with Raw Values

    2 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