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

Kash Johnson
Kash Johnson
3,146 Points

No question here, just a suggestion for those that are getting confused on this video.

If you're in the 'Front End Web Development' track, you just went through two stages where you got to make good use of 'Workspaces'. You've now arrived at this video and there's no 'Workspaces' option...but there is.

You don't have to use Google Chrome to set up the html or the js for this task. Just open a new Workspaces file from the menu options at the left. It's the very last option out of the five offered. It looks like a browser screen with brackets.

Open a new Workspaces window and create a new file called, "index.html". Also create a new file called "myscript.js". You can utilize "file...new" for this, or right click in the side bar and create a new file. You then need to provide the specific html that is needed to run the javascript code that the instructor has you type. I've tried to include the text here in this comment, but I can't determine how to do it correctly...sorry. But, this will work once you get the specific code in the 'index.html' file.

Now you can follow along and type the javascript code as needed and continue to utilize 'Workspaces' for your computations.

I hope this makes it easier for those who are hitting a wall on this one...:-)

Peter Van der Lely
Peter Van der Lely
6,342 Points

Hi there,

All in all you write and save your webfiles with the help of an editor like notepad or TextPad or Brackets (free download from brackets.io) or tons of others. When you save this like index.html in a directory on your C: drive with the name of eg. localtreehouse, you open the index.html file with the help of your Chrome browser and it's 'URL' will show as: file:///C:/locolhosttreehouse/index.html. Now by opening the developer tools of your Chrome browser will bring you in sync with the video.

Regards Peter

Micole Noddle
Micole Noddle
5,797 Points

Thank you! I tried that with workspaces, but nothing is running in the workspaces console. Any idea why?