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 Introduction to Programming Basics Writing Your Program

File creation

Hi there, I can't figure out how these files are created in this lesson. I will appreciate some guidance on how to do that.

6 Answers

Tommy Gebru
Tommy Gebru
30,164 Points

The lesson is adding file to Textmate , Textmate is an editor you can get free online (http://macromates.com/) OR you can use a text editor you prefer. In the video there are two file being added or saved to the text editor one that ends in .html and one that ends in .js The File name before the extension ( .html or .js ) can be whatever you want it to be. Just open or save a file in your text editor and change the File name or the extension.

Thanks, Teame I am going to try that.

Tommy Gebru
Tommy Gebru
30,164 Points

Select Best Answer to close out the forum post

Tommy Gebru
Tommy Gebru
30,164 Points

Whenever following along any video lesson, to the right is usually a link to "Launch Workspace" (this is a text editor for treehouse students) (https://teamtreehouse.com/workspaces/) and also a link to "Launch Codepen"(http://codepen.io/) Both should accept .css .html and .js files or languages. When programming/coding a text editor is never far away.

Okay, I used workspace in the first part of the track I am following. But on this I got a bit confused. This will held though.

Okay, I used workspace in the first part of the track I am following. But on this I got a bit confused. This will held though.

Tommy Gebru
Tommy Gebru
30,164 Points

Where are you having problems?

I don't understand how the code written in Textmate is being executed in the console. I managed to create the .html and .js files but I can't executed the code in the console.

I managed to load the html file on the browser, so I am able to executed the code.