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 trialDavid Lackey
1,948 PointsCommunication 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.
var age = "25";
<!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>
David Lackey
1,948 PointsNo particular reason misunderstanding between the directions and me lol. This error has been going on since late last week
Gunhoo Yoon
5,027 PointsThat sounds like you need to contact to teamtreehouse team.
1 Answer
jason chan
31,009 PointsHi david. Remove your quotes and you should be fine.
var age = 5;
var price = 1.1;
integers do not require quotes, only strings.
Cena Mayo
55,236 PointsCena Mayo
55,236 PointsHi 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