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


Anthony Scott
Anthony Scott
Courses Plus Student 9,001 Points

jquery error in console.


Getting a jquery error I don't understand

Uncaught ReferenceError: response is not defined at Object.success (widget.js:5) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at x (jquery-1.11.0.min.js:4) at XMLHttpRequest.b (jquery-1.11.0.min.js:4) (anonymous) @ widget.js:5 j @ jquery-1.11.0.min.js:2 fireWith @ jquery-1.11.0.min.js:2 x @ jquery-1.11.0.min.js:4 b @ jquery-1.11.0.min.js:4

2 Answers

Umesh Ravji
Umesh Ravji
42,386 Points

Hi Anthony, you are getting Uncaught ReferenceError: response is not defined because it's not defined. You have spelled response incorrectly, hence the error. Just fix the spelling and it works fine :)

$.getJSON(url, function (repsonse) { // fix this param