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 trialEdward McEntire
8,667 Pointsmy 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.
Edward McEntire
8,667 PointsI removed the single quotas and it still did not work.
2 Answers
Stanley Thijssen
22,831 PointsHi 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! :)
Reese Lynn
1,499 Pointsvar 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
Treehouse Moderator 27,696 PointsFixed 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.
Rich Donnellan
Treehouse Moderator 27,696 PointsRich Donnellan
Treehouse Moderator 27,696 PointsFixed your code formatting. From the Markdown Cheatsheet: