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 AJAX Basics (retiring) AJAX and APIs Displaying the Photos

Thomas Greer
Thomas Greer
8,257 Points

The last step isn't working for me. The console reads " Uncaught SyntaxError: Unexpected token ( " on line 19.

My flickr.js file seems to be acurate, but I continue to get this error. Please help!

3 Answers

Darren Joy
Darren Joy
19,573 Points

It's easier for people to answer if you show your code...

my guess would be a ( where there shouldn't be one. Which can often actually mean that there's 'one too many' ()'s i.e. an uneven number... somewhere else higher up in the code

Go to line 19 and highlight the ). It should highlight the corresponding (. If there isn't one you either need to add a ( or delete the ). I think I have also seen this error when a semi-colon is need after the )

Darren Joy
Darren Joy
19,573 Points

Good point. I forgot that WorkSpaces has all these 'ease of use' functions

sublime has them too which is really handy when debugging. I highly recommend sublime if you don't already have it,

Darren Joy
Darren Joy
19,573 Points

Thnx for the tip. Will check it out..