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 Foundations > Numbers > The Math Object - Console Not Expanding

I am using Chrome and the JavaScript Developer Console, and trying to expand the Math object, but the console isn't giving me the arrow next to it. It just says:

Math
MathConstructor {}

Is this due to an update in the browser, or is there an option I am supposed to click in order to expand things?

5 Answers

Do:

Math.

But do not hit enter and a pop up menu will appear.

Use

console.dir(Math)

You can find more info on Console API here

Same thing happend to me. I have no idea why.

Thanks guys!

The 'Math.' opens the dropdown auto-fill in the console, but doesn't display the tree-structure shown in the video. Is there a plug-in for this? Also, the console.dir(Math) returns 'undefined'. I'd really like the ability to display the tree-structure for reference. Any help with this is much appreciated.