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 trialraed aseri
1,389 Pointswhere is the problem
const temperature = 37.5;
const tempRounded = math.floor(temperature);
1 Answer
Cameron Childres
11,820 PointsHi Raed,
Two things:
- The Math object needs a capital "M"
- The first question asks to round to the nearest integer which is done with Math.round()
const temperature = 37.5;
const tempRounded = Math.round(temperature);
Math.floor() rounds down to the nearest integer which will come in handy for the next task.
Hope this helps! Let me know if you have any questions.
raed aseri
1,389 Pointsraed aseri
1,389 PointsThank you Cameron