"Build a Restaurant Reviews App" was retired on May 31, 2020.

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

Document write is not writing anything. What wrong?

Document.write is not showing anything when I preview it. This is my code

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

Does it look wrong?

2 Answers

Stuart Wright
Stuart Wright
41,120 Points

It looks like you might have used backticks (`) for some of your quotation marks - make sure you use the correct character to denote strings (' or ").

You also need to be careful with the case of your variable names (hoursPerDay and HoursPerDay are not the same in JavaScript).

Thanks that helped!

Your HoursPerDay in secondsPerDay needs to be capitalized.

var secondsPerDay = secondsPerMin * minsPerHour * HoursPerDay;