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

Liem Hoang
Liem Hoang
3,807 Points

How come when i preview my code I was prompted with the same questions twice?

https://w.trhou.se/tmmg4lwvst Thanks in advance

2 Answers

You are referencing the script twice in index.html.

<body>
  <script src="story.js"></script>
  <div class="container">
  <h1>The Story Maker</h1>
  <script src="story.js"></script>
  </div>
</body>
Liem Hoang
Liem Hoang
3,807 Points

Lol no wonder. Thanks Kris