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 trialille
2,275 Pointshow am i going to figure out how to append the results,
your exercises really waste a lot of time trying to figure out something that is not immediately relevant to the video and is frustrating!
1 Answer
Steven Deutsch
21,046 PointsHey Cyrille Najjar,
I can understand your frustration, however, what the code challenge is asking you to complete is relevant. In the previous videos, you learned how to use the append() method to add a value to an array. This challenge is building on the append() method and combining it with your new knowledge of loops. What you need to do, is use the append() method to add the calculated values from each iteration of your loop to the results array. Let me know if this helps, I'm trying to delay giving you an outright solution.
Good Luck!