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 Hello, JavaScript! Write JavaScript Statements

Typing everything in correctly but not exactly sure which file I'm trying to configure to javascript from HTML.

Idk what went wrong. Thought the <script src="myJSfile.js"></script> or <script src="index.html"></sc would work

index.html
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>JavaScript Basics</title>
  </head>
  <body>
    <script src="myJSfile.js"></script>
  </body>
</html>
app.js
<script src="myJSfile.js"></script>

2 Answers

What you wrote inside the body tags in index.html would have worked if the javascript file were named 'myJSfile.js'. In this challenge, it is named 'app.js'. Change "myJSfile.js" to "app.js" and delete that line in app.js and you should get to the next step.

Omg thank you so much!!!! Finished immediately after you told me that! I get it now!