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 trialJeremy Hogan
15,451 PointsQuiz help section?
tl;dr Quiz help, hints or answers?
Is there a place (and maybe this is it now) where a person can seek help with some of the quizzes. For the most part, the code challenges are clear and correspond perfectly with the material covered in the video. Sometimes, however, they ask about stuff that hasn't quite been taught or in a way that assumes knowledge.
I don't see any hints when I get stuck or a place to see what the correct answer is. Am I just missing it or is there a place I can go? Thanks!
For example on the Build a Simple PHP Application > Listing Inventory Items > Introducing Arrays > Code Challenge, the challenge is: "Right now, the unordered list does not show the flavors from our array. In the next few tasks, we'll change that. This task has two steps. (1) Add the start of a foreach loop with an opening curly brace after the opening <ul> tag but before the first opening <li> tag. The foreach loop should load each element from the flavors array, one at a time, into another variable named flavor. (2) Add the closing curly brace for the foreach loop after the final closing </li> but before the closing </ul>."
I have:
<?php
$flavors = array("Chocolate", "Vanilla", "Strawberry");
?>
<p>Welcome to Ye Olde Ice Cream Shoppe. We sell <?php echo count($flavors); ?> flavors of ice cream.</p>
<ul>
<?php foreach($flavors as $flavor) {
<li><?php echo $flavor1; ?></li>
<li><?php echo $flavor2; ?></li>
} ?>
</ul>
I have tried change the arrays in the li elements and any number of things, but can't get it to validate. I know I must be missing something, but what?!
11 Answers
Jeremy Hogan
15,451 PointsOkay, I actually did figure this one out, but I would still love to see a Code Challenge help section, or a hint or at least be able to see the answer. Thanks!
Nick Meagher
4,987 PointsI totally agree, I have been going through videos and doing the code challenges/quizzes and it would definitely be nice to have a hint sometimes.
Alan Johnson
7,625 PointsJeremy - This is something our team has talked about a lot. We don't want to give away the answers to code challenges and quizzes, and it's likely that helping everyone out on the forum would turn into that, but we certainly do want to hear about it when you run into problems so that we can hopefully ask questions more clearly or refine the problems to make them better. Please let us know either here on the forum or through help and we'll work on making that better.
Our hope is certainly to lead everyone through the quizzes and code challenges so that even if you're not sure about the answer initially you'll be able to get there. We're not nearly where we should be on that, but I think as we refine those features we can make it happen.
Robin Senor
1,537 PointsI've had great difficulty with the CSS foundation sections; it seems that things are covered in the challenges that either weren't covered in the training, or weren't covered clearly. I've had to abandon a couple challenges here. Its so frustrating that I can't check my work when necessary...kind of making me second-guess the choice to use treehouse. FWIW I didn't find some of the other sections of the Becoming Web Designer to have this issue...just CSS foundations.
James Barnett
39,199 PointsI've always thought that learning how to learn is just part of the journey. There is no "hint" section on the job. However there are Google and forums like Stackoverflow.
So my suggestion is always, put up the code you've got into a reduced test and post that on the forum of your choice. Be sure to make it a "working" example including all the HTML, CSS & Javascript that you had on the problem.
If you are working on Front End stuff I recommend using http://codepen.io If you are working on PHP try http://codepad.viper-7.com/
Also be sure to include a link to whatever quiz or code challenge you are having issues with.
Mark Flavin
10,199 PointsIt would be cool if you could click a button and have a forum post created automated tagged with the relevant information about the course. This would also be helpful for the Treehouse staff as they could see where people are getting stuck or could benefit from additional information.
Regarding James suggestion about the code I agree with leveraging a working example as it makes it much easier for someone to assist. Though I prefer jsFiddle to codepen for front end support and sharing. Codepen is very cool for showing off things projects though.
Fabi Castillo
9,338 Points@Mark I love your idea of auto-populating a forum post with information of where you're at on the site!
cc @duwanis (product team lead) @jeremyjantz (design team lead)
I am also stuck on this question. How did you solve it?
<?php
$flavors = array("Chocolate","Vanilla","Strawberry");
?> <p>Welcome to Ye Olde Ice Cream Shoppe. We sell <?php echo count($flavors); ?> flavors of ice cream.</p>
<ul> <?php foreach($flavors as $flavor) {?> <li><?php echo $flavor; ?></li> <?php } >? </ul>
Nathaniel Perez
5,987 Points<?php
$flavors =array ("Chocolate", "Vanilla", "Mint");
?>
<p>Welcome to Ye Olde Ice Cream Shoppe. We sell <?php echo count($flavors); ?> flavors of ice cream.</p>
<ul> <?php foreach($flavors as $flavor) { <li><?php echo $flavor; ?></li> } ?> </ul>
Nathaniel Perez
5,987 PointsStill I can't seem to pass this one!!! Above ^ is the code I came up with. Can someone point me in the right direction? Thanks
Nathaniel Perez
5,987 PointsI found the issue!!!
<?php $flavors =array("Chocolate", "Vanilla", "Mint"); ?>
<p>Welcome to Ye Olde Ice Cream Shoppe. We sell <?php echo count($flavors); ?> flavors of ice cream.</p>
<ul> <?php foreach($flavors as $flavor) {?> <li><?php echo $flavor; ?></li> <?php } ?> </ul>