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

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.