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 trialOmar Ocampo
3,166 PointsDoing Math with Dave McFarland
var secondsPermin = 60;
var minsPerHour = 60;
var hoursPerDay = 24;
var daysPerWeek = 7;
var weeksPerYear = 52;
var secondsPerday = secondsPermin * minsPerHour * hoursPerDay;
document.wite("There are " + secondsPerday + " senconds in a day");
I want to check everything is ok, but when I go to preview, I can get only TIME CALCULATOR, could you guys please let me know what is wrong?
(MOD: I just updated the question to add in some code formatting per the Markdown Cheatsheet. It'll be easier to read and easier for people to help you out!)
2 Answers
Abdifatah Mohamed
5,289 PointsI will give you one piece of tip. If you check everything and it seems okay and still not showing anything when you review although you double checked. Please follow these steps. On the preview window go to console by CTRL+SHIFT+J , the console will show you exactly which line needs to be fixed and when the error coming from. You can try now this problem above and you will see the error was document.wite. Hope I helped you!
KRIS NIKOLAISEN
54,971 PointsYou have a typo
document.wite(
instead of:
document.write(