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.
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.
Garrett Carver14,680 Points
Hi Natalie, To debug this problem, I would check for these potential problems:
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.
Is the output of your code using the correct variable or expression? Try outputting the answer multiple ways using
document.write(). That might give you a better idea of what's going on.
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.