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 Introducing JavaScript Finishing the Game Adding Animated Characters

Can't launch the game for java script

I am taking the JavaScript course and there is a game that we are suppose to make changes to. However, when I select the preview button the tab that opens is blank and dark. I did download web server and it still comes up blank . There isn't any other instructions in the teachers notes that explain what else the student should do to bring up the game.

Hi Matthew, I'd recommend either checking your code to find typos, or making sure you properly linked your game.js file in your index.html. I remember when I was coding this game I had a similar problem due to a typo in the code. Hope this helps!

5 Answers

In my experience using Windows 10, opening the index.html in Chrome requires the Web server extension. Type chrome://extensions/ in the Chrome web browser then see if the Web Server for Chrome extension is install. Best way is to copy this url "https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?hl=en" and hit the launch button. Using Firefox is easy just open the index.html

Glenré Charl Labuschagné
Glenré Charl Labuschagné
23,204 Points

Hi Matthew, did the game work before you made any changes? Perhaps re-download the exercise files and review that everything is working to identify if it is your code or the Chrome web server. You can also try using Firefox as it requires no additional web server setup, to run the game. Simply open your index.html file in Firefox. Hope this helps: good luck!!

This workspace also doesnt load the javascript game for me. The others have worked fine. I relaunched the workspace and tried again from scratch and it doesn't load. The workspace for the next video allows me to load the game without any issues.

Karen Wines
Karen Wines
235 Points

I have been unable to load the workspaces even before I have made changes. I believe I need to download the extension for chrome. Which I am trying to do and having some issues. Has anyone else donwloaded this extension? If so can they provide a basic explanation of how it works.

Ok, I've opened workspace in Safari, Chrome, and Firefox. I had to scroll over the "Introducing JavaScript - Adding Animated Characters" text to show the launch button. Should let Treehouse know there is a problem.