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

Using the Console in the Mozilla Development Network

When I have the Mozilla Development Network page open as Dave does in the Creating a Random Number (JavaScript Basics), I get a message about Google Analytics being blocked. I type in clear() and the message goes away. However, when I then type in math.random() and hit Enter as Dave does, I then get a message saying Reference error: math is not defined. It doesn't give me a random number. What am I doing wrong?

3 Answers

Please use a different browser.

Are you typing Math with a capital M?

Thank you Karolin - that was what I was doing wrong!