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 Numbers and Strings

JavaScript Number and Strings with Dave McFarland

The Workspace I launch for this course is still previewing as the 'Time Calculator' from previous lesson even after I update and save to the first prompt in the lesson. The alert box will not appear, every time I click preview I just get "Time Calculator".

var HTMLBadges = prompt('How many HTML badges do you have?');
var CSSBadges = prompt('How many CSS badges do you have');
var totalBadges = HTMLBadges + CSSBadges;
alert ('Wow! You have ' + totalBadges + ' badges!');

1 Answer

Steven Parker
Steven Parker
231,007 Points

Do you want to know why, or just fix it?

If you'd like help with a complete and accurate analysis of the issue, make a snapshot of your workspace and post the link to it here.

If you just want to fix the issue and move on, I'd suggest deleting the workspace and re-creating it. Just open the Workspaces page and find the specific one in the list. Click on the "gear" icon on the right side and select "Delete Workspace". Then when you return to the course and launch it again, it should come up with the appropriate initial content.