JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

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

task 2 of 2

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="shout.js"></script> 
document.alert('I DID IT!');

1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 143,733 Points

Hi Noel,

You've almost got it. The JavaScript method needed here is alert(). You're not asked to do anything with the document object, so just alert().

Nice work! :) :dizzy: