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 trial

JavaScript JavaScript Loops Working with 'for' Loops Dynamically Display HTML with a Loop

Tadjiev Codes
Tadjiev Codes
9,626 Points

Thanks for this amazing Loops course) Love it

Dear Guil Hernandez
Thank you soo much for this super explanatory course. I had a tough time understanding what was the difference between using

<=  or < 
// within the loops

And this video really made it clear so that it includes the last item.
You're my favorite teacher in Treehouse)
I always had to do + 1 in the output like in your example. But, <= workaround seems to be much more efficient and straightforward
as the counter variable starts from 1.
It would be also fantastic if you could create a course combining all these major JavaScript concepts such as Loops, Arrays, and Objects with a small practice project like a shopping cart where Items get stored in an array and Object Class or function constructor and loop through those items every time to display, to calculate and other stuff. I think a practice project would really help to cement the gained knowledge in these courses. Thanks a lot again 🙂🙂🙂

2 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi @tadjievcodes. Glad you liked the course! The final videos of the course "JavaScript Objects" is a practice challenge where you get to use loops, arrays, and objects to create content/HTML that displays on the page. :)

Tadjiev Codes
Tadjiev Codes
9,626 Points

Okay Great. Thank you again)))

Daniela Fernandes Smith
PLUS
Daniela Fernandes Smith
Courses Plus Student 10,353 Points

I second that! Love your classes, Guil! You're the best JavaScript instructor I've ever found.