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 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,681 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.