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

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
229,982 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
229,982 Points

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