Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
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,795 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,843 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.
GT MEXCourses Plus Student 7,780 Points
With Chrome, you should go into your advanced settings and manage exceptions in:
I fixed my problem with this steps