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 Using Math Methods

Amanda Smith
Amanda Smith
3,079 Points

Hi, the formatting of this challenge is nearly impossible to read. It's aligned to the right...

Just to let you know, the code is hard to work with on this challenge (https://teamtreehouse.com/library/javascript-basics-2/working-with-numbers/using-math-methods). It seems like the CSS styling is messing it up... It's right aligned and completely out of the editor.

script.js
var temperature = 37.5;
temperature = Math.round(temperature);
alert(temperature);
index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

3 Answers

Colin Marshall
Colin Marshall
32,861 Points

What browser are you using? I'm in Chrome and it looks normal and is not like you described it. Try another browser or try clearing your browser cache and see if that fixes it.

Amanda Smith
Amanda Smith
3,079 Points

It still displays poorly for me in Chrome after clearing the cache, but I opened it in Firefox, and it seems to be working fine. Thank you.

Colin Marshall
Colin Marshall
32,861 Points

That is odd. I wonder if the system is having trouble with challenges. Seems like a couple other students had little issues like that this morning. Keep using Chrome and if it happens again please contact tech support (link in the right sidebar). Thanks!!!