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.

JavaScript

alert call not being picked up in Treehouse Workspace

I created just a regular html page with an external JavaScript file and it worked just fine. But the exact same code inside the TreeHouse Workspace does not work. It logs console.log inputs but a basic alert function does not work

can someone help me out with this?

alert("hello");

3 Answers

<script> alert('Warning'); </script>

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

I'm not seeing that. I've created a Workspace with a HTML and JS file. The JS file has alert('hello'); and the HTML file links to the JS file: <script src="app.js"></script>

Maybe you could show us your code.

Thanks for the response Dave. I figured out that my browser is not up to date. That is why It was not working within the workspace. I really can't download another or update my current. But I found a work-around.

Thanks again.