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

Console "uncaught exception: out of memory"

I'm following along with the JavaScript Basics course. When I create and run a program to generate random numbers I get this error in Firefox's console.

What's weird is that I can keep running this doodler via refresh as long as I like (must...not...gamble), so I don't see what memory has actually been depleted. The line number of the error is listed as unknown, which is not very helpful.

Here's what my JS file looks like

var dieRoll = Math.floor(Math.random() *6) +1;

alert("You rolled a " + dieRoll);

Any ideas?

altair
altair
6,548 Points

I'm getting a similar issue making a tic-tac-toe game. I can't even load my html page at the moment. Did you ever find a solution?