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

for...of loop not accepted?

I tried the following code but it isn't accepted in the challenge. works fine in my browser though. any clue what the problem is?

for (let par of paragraphs) {
  par.style.color = 'blue';
};

also, I found out that it isn't possible to use forEach for parent.children. would be nice to know a bit more about looping over these kind of HTMLCollections. other courses on Treehouse to found more about this or any other good recourses? thanks in advance

1 Answer

Can you put a link to the challenge?