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 trialGremyko Coleman
9,756 PointsHow do you know or how do you get the list of attributes for an element?
In the video, @ the 5:00 mark. How do you know when? or How to figure how to get the properties for any element? Like how did Gil know to just prompt it to console log to see what value the checkbox returned "true or false"?
I've seen this in another video on treehouse, where the instructor was able to view a list of each property for a element in the console log on the developer tools?
1 Answer
Jamie Reardon
Treehouse Project ReviewerHi Gremyko Coleman hopefully I understand your question correctly! So to see a list of properties, you can open up the console, find or create a variable referencing an element, type that variable name in on a new statement (after hitting enter), and type a .
character which suggests it's properties/methods on the object. You can cycle through them using the arrow keys if you prefer.