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 trialElizabeth Hicks
44,877 PointsIssue with choices of question "Which code sample will not work"
choice for ($i=0; $i < $count); $i++) {} has error in it so I picked this as this one. It needs to be fixed or allowed
Elizabeth Hicks
44,877 PointsRight but the wording of the question should have made it so choosing the one I pointed out is valid. That's why I pointed this out. The question didn't say which code will cause an infinite loop is asked which will not work.
Algirdas Lalys
9,389 PointsOf course it's a mistake someone misspelled it wrong I think:) It's better to inform support, they should edit it. You have great eye. I didn't noticed it when I was going through this Quiz first time.
Algirdas Lalys
9,389 PointsAlgirdas Lalys
9,389 PointsHi Elizabeth Hicks,
Yes indeed, you have spotted mistake, there shouldn't be ) after $count variable. It seems challenge wanted to find us infinitive loop which is in a while loop of that question.