Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Working With Numbers Doing Math

LaunchWorkspace : The app will not update and will only show the last answer I worked on. Renaming file sometimes works

When I did the math in the first part, it worked. However, when I tried to work on how many seconds with my age, it will not allow to see the results in the browser when I subtract or add to the code to see what happens. Once I get the correct answer, it keeps showing the old answer in the browser even though I changed the code in the Launch Workspace.

Hi Natalie,

Can you please post a snapshot of your workspace? It will help us see exactly what you have so we can figure out your problem. If you don't know how to post a snapshot, here's a handy dandy forum post for you: http://www.teamtreehouse.com/forum/workspace-snapshots

1 Answer

Garrett Carver
Garrett Carver
14,680 Points

Hi Natalie, To debug this problem, I would check for these potential problems:

  1. Is your index.html file pointing to the correct scripts.js file? It could be that the workspace is still pointing at story.js from the last lesson.

  2. Is the output of your code using the correct variable or expression? Try outputting the answer multiple ways using alert(), console.log(), & document.write(). That might give you a better idea of what's going on.

  3. Is there any syntax errors in the code, such as a missing semicolon at the end?

Hope that helps a bit. Also, feel free to send your code and I can help you debug it.