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
Sam Gord
14,084 Pointsconsole.dir VS console.log
i'm getting the exact same result with console.dir as console.log when using them on objects, so what's the advantage on using console.dir over console.log with objects?!
1 Answer
Steven Parker
244,190 PointsDepending on your browser, there may not be a difference. The functionality is dependent on the browser's implementation.
You're more likely to notice a difference if you use them on arrays than on ordinary objects.