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

When I switch between the preview tab and another tab on my browser, why does my preview tab "skip" to the end?

If I fill out script.js and preview it, the first alert message displays as expected. If I switch to a different tab then switch back to my preview tab, instead of displaying the first alert message again, it displays the last alert message (i.e. alert("1")) and the header tag has been rerendered to "BOOM". Why does this happen?