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 JavaScript Basics (Retired) Introducing JavaScript Link to an External Script

Matthew Sharikov
Matthew Sharikov
5,767 Points

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

Hi there!

I'm stuck on this question, please help.

index.html
<!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>
</body>
</html>
shout.js
  alert("I DID IT");

5 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing great. Challenges can be extremely strict. In this case, you've simply forgotten an exclamation point at the end. The string in the alert should be "I DID IT!". Add an exclamation point, and this challenge should pass.

Good luck! :sparkles:

The computer is telling me this:

You didn't call the alert() function inside the shout.js file.

Matthew Sharikov
Matthew Sharikov
5,767 Points

Thank you Jennifer! That helped.

alert("I DID IT!");

okay but whats the actual answer??

I have everything the same and don't work I need help. please

Chris Bryan
Chris Bryan
3,654 Points

Do you still need any help?