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


ilham salahov
ilham salahov
11,273 Points

Object-Oriented JavaScript By Example

I cannot use the files in Object-Oriented JavaScript By Example course. what is the format of them? what should i do?? help, please.

2 Answers

Stu Finn
Stu Finn
3,427 Points

Which editor are you using? VS Code is great that’s what I’m usIng, so is Sublime Text.

Hello ilham!

The files should end with the extension ".js" signifying that they are JavaScript Files. They can be opened with a regular text editor.

(I'm assuming the files you see are Board.js, Game.js, Player.js, Space.js, and Toke.js? Even if they do not say".js" after the name, rest assured, that is the file type.)

There are many text editors available, even a very simple one pre-installed on your PC, which should be able to open these files.

If you wanted to use Microsoft Notepad to open the .js files, you would right click on the file and select "open with" from the menu, which would call a menu from which you could choose to open the file with Note Pad.

HOWEVER, I cannot recommend using Note Pad for editing these files, because note pad doesn't have any of the helpful tools you would find in the "workspaces" program used here on Treehouse.

I use the free "Atom" text editor, which you can download here: https://atom.io/

Atom is really easy to set up and use, and I recommend that you give it a try. If you need any help, or if what I've written above doesn't help you, leave a comment, and I'll try and get back to you.

Happy Coding!