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

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!