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 JavaScript Loops, Arrays and Objects Tracking Data Using Objects Mixing and Matching Arrays and Objects

Why is the workspace they gave me different from the one in the video?

I did what the video asked me to do, but the title was different and the quiz did not show up. I also noticed that the workspace in the video had 2 JavaScript files, and I only have 1. I launched the workspace from this video!

Also, how do I show my code?

1 Answer

Steven Parker
Steven Parker
230,995 Points

When I launch the workspace, I see three files, index.html, quiz.jz (in js folder) and styles.css (in css folder). You might try restaring the workspace. Go to the Workspaces page and locate the one you are using. Click on the trashcan icon on the right side to delete the workspace, and confirm when you get the pop-up.

With the workspace deleted, you can go back to the course and "Launch Workspace" again. When it comes up, it should have all the files in their initial states.

And for sharing code, one way is to copy/paste it in and use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:   Or watch this video on code formatting.

An even better way to share code is to make a snapshot of your workspace and post the link to it here.