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 Object-Oriented JavaScript: Challenge Rendering the Game startGame() Method Solution

How do I run the program on the browser?

This challenge is my first time using VS Code rather than the TreeHouse in-browser text editor. I how do I copy the index link or use the run/debug tools. Does anyone have any videos or explanation that might help? Peace

1 Answer

You can run it like this:

  1. Go to File Explorer
  2. Go to your .html file
  3. Right-Click the .html file
  4. Hover over Open With
  5. Click your preferred web browser and it'll preview in your browser! Hope this helped!

Thank you very much!

No problem!

Bradley Jarrett
Bradley Jarrett
11,393 Points

This did not work for me. Is there another way?

It goes to html editor options instead of letting me launch to a browser.