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

Franco Cappello Collado
Franco Cappello Collado
1,607 Points

Get error in javascript

Inside the shout.js file, write the code for an alert dialog with the message 'I DID IT!'
index.html shout.js

I wrote this inside the shout.js <script> alert("I DID IT!"); </script>

I get a error "Oops! It looks like Task 1 is no longer passing."

1 Answer

Steven Parker
Steven Parker
221,513 Points

:point_right: You would only use <script> tags to place JavaScript inside an HTML file.

Since this is a purely JavaScript file (as identified by the .js extension), you will not need the tags.

Steven Parker
Steven Parker
221,513 Points

It's my pleasure to help.
Remember to choose a "best answer" to indicate that the issue has been resolved.