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


Julie Roadnight
Julie Roadnight
2,856 Points

Using Math Methods

Hello TreeHouse community I'm in the process of completing the Using Math Methods coding challenge as part of JavaScript Basics, and I'm stuck. Can someone please explain why this doesn't work please?

The question is; 'For this Code Challenge you need to use JavaScript's Math methods. Open an alert dialog and display the temperature variable rounded to the nearest integer.'

This is my code; 'var temperature = 37.5; altert(Math.round(temperature));'

I have an error message, saying my code is wrong. Any suggestions welcome. Thanks

2 Answers

Ben Schroeder
Ben Schroeder
22,818 Points

It looks like you spelled "alert" wrong.