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
arthropod
2,792 PointsI've tried about a dozen permutations and I can't get the alert-dialog-in-the-shout.js-file "I DID IT!" to work.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JavaScript Basics</title> </head> <body> <script> src = shout.js </script>; <script> alert( "I DID IT!") </script>;
</html>
3 Answers
james south
Front End Web Development Techdegree Graduate 33,271 Pointsyour alert is in the second script tag, not the shout.js file. get rid of the second script tag and put the alert in shout.js, which is called to by the first script tag.
arthropod
2,792 PointsI feel as if I'm too dense for this; it just isn't making sense. Think I'll try another course. Thanks for your help, though!
arthropod
2,792 PointsMy answer:
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>"JavaScript Basics"</title> </head> <body> <script src="shout.js">; </script> alert("I DID IT!");
</body> </html>
Now I've gotten a " Well done! You're doing great!" message. When I click on "Next Task" I get redirected to the same challenge. When I submit the same code, I get the message "Bummer! You didn't call the `alert()` function inside the `shout.js` file.