Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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..