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

my total is not showing.

var secondsPerMin = 60;
var minsPerHour = 60;
var hoursPerDay = 24;
var daysPerWeek =7;
var weeksPerYear = 52;
var secondsPerDay = secondsPerMin' * minsPerHour * hoursPerDay;
document.write('There are' + secondsPerDay + 'seconds in a day');

Need a second set of eyes, I can not see the problem with the code.

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,671 Points

Fixed your code formatting. From the Markdown Cheatsheet:

If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

I removed the single quotas and it still did not work.

2 Answers

Stanley Thijssen
Stanley Thijssen
22,831 Points

Hi there Edward,

You got a small quote inside your secondsPerDay variable declaration. It is behind your secondsPerMin, this causes a syntax error, when you remove it it should be fine! :)

var secondsPerMin = 60; 
var minsPerHour = 60; 
var hoursPerDay = 24; 
var daysPerWeek =7;                          |
var weeksPerYear = 52;                     \/
var secondsPerDay = secondsPerMin' * minsPerHour * hoursPerDay; document.write('There are' + secondsPerDay + 'seconds in a day');

you have a single quote. remove it, and you should be good!

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,671 Points

Fixed your code formatting. From the Markdown Cheatsheet:

If you specify the language after the first set of backticks, that'll help us with syntax highlighting.