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!
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
Cora WeissCourses Plus Student 1,271 Points
alert("hello there"); not rendering
alert("hello there"); document.write("No it works!"); console.log("program complete");
Why is this not working?
Aaron Pedersen5,856 Points
I had the same problem. I would click the preview icon but no alert would display and the console gave the same errors. After clicking the refresh button on the browser (Chrome) it worked as it should. I'm not sure why it was doing that. Maybe it had something to do with the cache.
Michael Hulet47,909 Points
My guess is that you blocked your site from displaying alerts. Check your browser's settings for how to un-block it
Hey there Cora!
So depending on your browser you should be able to bring up a console. This is a text input area where you can test individual bits of code in real time. (If you're using Google Chrome you'll find it in Developer Tools in More Tools.)
If you were to enter alert("hello there!") into the console, it does in fact throw and alert, so there's no problems there in terms of syntax. If it doesn't, then you'll need to re-enable pop up alerts in your browser window. A quick Google search should give you a detailed how-to.
Igor Cavalcante5,025 Points
i fixed the code as the teacher told. Im not having the alerts too.
So i think the problem is not in the browser, the problem is that the changes are not saving......
Thomas Cormier2,496 Points
I am using Chrome as well. I have found that with a lot of these videos, you need to close your workspace and clear your browser data in between every video. Its a pain, but it works.
With Chrome, you should go into your advanced settings and manage exceptions in:
I fixed my problem with this steps