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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Jordan Leithner](https://secure.gravatar.com/avatar/dd76ea462fd4649ef4b70f910a052f61?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jordan Leithner
1,045 PointsUnexpected token ILLEGAL when creating two dimensional arrays
When doing the code challenge, I was to create an array within an array but got the error message "Unexpected token ILLEGAL on line 5". (Line 5 is the line with [007, 008]).
I'm wondering what is the "illegal token" on line 5 of my code? Am I missing something?
var coordinates = [
[001, 002],
[003, 004],
[005, 006],
[007, 008]
];
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Objects</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>
2 Answers
![KRIS NIKOLAISEN](https://secure.gravatar.com/avatar/65d74a723997b41a80d2d909c6e06960?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
KRIS NIKOLAISEN
54,969 PointsI'm not sure about the token myself but I think the error has to do with the leading zeroes. I enclosed all of your values in quotes and that passed the challenge.
![Cheo R](https://secure.gravatar.com/avatar/f58173f5f2634ff4a5874d404908293a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Cheo R
37,150 PointsInteger literal beginning with 0 is interpreted as an octal (base 8) quantity.
For single-digit numbers (other than 08 and 09, which are not allowed) they print the same, 008 causes error. So all you need to do is to change the last element in the last sublist.
Jordan Leithner
1,045 PointsJordan Leithner
1,045 PointsAhh ok, thank you!!