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 Foundations Strings Comparing Strings

JavaScript Foundations Files

Hello, where do I get an html file for this video, or do I need to built one myself?

JS is included in downloads but html is not, what am I missing here?

If you need a quick template for running JavaScript files, you can copy and paste the below code into notepad and save it as an HTML file.

Replace "strings6.js" with the name of whatever JavaScript file you want to run (leave in the double-quotes), make sure you have both the HTML file and the JavaScript file in the same directory, then open the HTML file in your web browser.

<!doctype html>
<html>
  <head>
    <title>Javascript Foundations</title>
    <script src="strings6.js"></script>
  </head>
  <body></body>
</html>

Cheers!

James

1 Answer

Michael Williams
Michael Williams
13,005 Points

Hi Paul Wagner,

It seems that the direction you take is optional on how you work with the videos. I ended up taking advantage of the project files from "Stage 1 - Variables" (JavaScript Foundations --> Variables --> Basics).

From there, I just built on the original project files throughout the course. In regards to the HTML file, I commented out the previous lesson and continued to move on to the next...

Regards, Michael