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

Development Tools Website Optimization Chrome DevTools Basics The Profiles Panel

Matthew McQuain
Matthew McQuain
14,184 Points

Be careful running that loop he wrote...

Just a heads up to all you other "curious to a fault" developers out there;

DO NOT write the same type of test() for loop he writes in your own browser using large numbers (at least on an older computer). You will crash. hard.

I ran it as ...if (i == 1000000000000000) { ...

As soon as I hit enter, it felt like an ancient JavaScript Jedi reached through space and time to grab me by the should and whisper in my ear "You fool....". I immediately regretted my decision.

The longer the function ran, the worse it got. Not in seconds, but milliseconds. Like a black hole of resource consumption. I had to restart the OS entirely for it to end.

Be smarter than me. friends.

1 Answer