Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialStefan Mach
3,691 PointsWhat?
if there are 0 singers, how can the answer be any of the choices? The only way that I can see this working is if, in an enum not revealed in this question, the code writer put one of the choices equal to 0, say duet = 0, but of course that would not make sense and so the code would be illogical. Please explain.
1 Answer
Arman Arutyunov
21,900 PointsIt's default. Switch is simply checking out every case and if the switching variable doesn't equal to any case, then the default compiles. So the answer is @”It’s a quartet or larger”