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

jes cahn-thompson
seal-mask
.a{fill-rule:evenodd;}techdegree
jes cahn-thompson
Front End Web Development Techdegree Student 6,719 Points

Javascript - Numbers 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. There's no alert pop up...anyone else run into this problem? My script.js is reading:

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!');                 

I noticed that my index.hmtl is still reading:

<html lang="en">
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" href="css/main.css">
  <title>Time Calculator</title>
 </head>
<body>
  <div class="container">
  <h1>Time calculator</h1>
  <script src="scripts.js"></script>
  </div>
</body>
</html>

Anyway, something's off. Any ideas?

2 Answers

Your missing a closing quotation mark at the end of the CSSBadges prompt. I think adding that missing quote mark should solve your problem but let me know it it doesn't. Goodluck!