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 trialMelody Olivera
2,869 PointsConsole Tool error
When I opened up the console via the developer tools on Google Chrome to test out the math.random() function on the MDN website I keep getting the follow error message
VM46:1 Uncaught ReferenceError: math is not defined at <anonymous>:1:1
1 Answer
Robin Goyal
4,582 PointsIt starts with a capital M! So it's Math.random().
Melody Olivera
2,869 PointsMelody Olivera
2,869 PointsI thought I was copying and pasting 🤦🏾♀️ Thank you! 😂