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 Loops, Arrays and Objects Tracking Multiple Items with Arrays Create a Two Dimensional Array

Daniel Springer
PLUS
Daniel Springer
Courses Plus Student 5,090 Points

Don't understand why its not working?

I'm getting thought this challenge even thought im pretty sure im doing it right?

script.js
var coordinates = [
  [34, 01],
  [23, 04],
  [43, 09],
  [54, 64]
];
index.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JavaScript Objects</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>

2 Answers

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi Daniel,

There is an illegal token in your code (it is invisible), try removing all your code and then writing it all over again. Your code is correct, it's just that illegal token ruining it for you :)

I hope that helped

Jonas

nitin suresh
nitin suresh
5,691 Points

Hey @stjarnan . Can you tell the problem here?

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

nitin suresh

Yes, there was an illegal token (in this case an invisible character that cause the JavaScript parser to throw that error.) on line 4.

Here's a link if you want to read up: Illegal Tokens

I hope that helps

Jonas

nitin suresh
nitin suresh
5,691 Points

Thanks stjarnan . I understood.

Yes, there was an illegal token (in this case an invisible character that cause the JavaScript parser to throw that error.) on line 4.

Here's a link if you want to read up: Illegal Tokens

I hope that helps

Jonas

Daniel Springer
PLUS
Daniel Springer
Courses Plus Student 5,090 Points

Hi Jonas,

Thanks for the quick reply. I followed your advice and it worked. Thanks ! D.