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 Storing Numbers in Variables

Communication error?

I am in a code challenge in the JavaScript basics and every time I click "check work" it tells me there is a communication error. I don't know what to do.

script.js
var age = "25";
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>

Hi David,

The communication error sounds like a temporary network issue unrelated to your code.

Speaking of your code, however - is there a reason you've made your age a string?

Best, Cena

No particular reason misunderstanding between the directions and me lol. This error has been going on since late last week

Gunhoo Yoon
Gunhoo Yoon
5,027 Points

That sounds like you need to contact to teamtreehouse team.

1 Answer

jason chan
jason chan
31,009 Points

Hi david. Remove your quotes and you should be fine.

var age = 5;
var price = 1.1;

integers do not require quotes, only strings.