Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Vladimir Plokhotniuk
5,464 Pointshow to see what class attributes we have?
...because i cannot imagine from which place we received a data in our key (main) function of this lesson.
1 Answer

Steven Parker
215,986 PointsThe ".className" property of an element will contain all the class names assigned to that element. Is that what you were asking in the first question?
But I don't quite understand the 2nd question, could you rephrase and/or elaborate a bit?
Vladimir Plokhotniuk
5,464 PointsVladimir Plokhotniuk
5,464 PointsYes, sorry, but where is this class names, assigned to that element? When i wrote " li.className " in console.log, i dont see nothing. second is about this function: if (li.className === 'responded') { li.style.display = ' '; } else { li.style.display = 'none'; } Thanks.
Steven Parker
215,986 PointsSteven Parker
215,986 PointsI can't be sure without seeing the whole code, but perhaps the element doesn't have any class name(s) assigned to it, and so the property is empty.