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 trialJameson Treu
137 Points"Bummer! The callback doesn't have 'response' as a named parameter"?
Now, in the http.get() call pass in an anonymous function as a callback with the parameter of response. This function is the second parameter in the get call.
my code:
var http = require("http");
http.get("http://teamtreehouse.com/chalkers.json", function(response) {
});
Why isn't this passing?
var http = require("http");
http.get("http://teamtreehouse.com/chalkers.json", function(reponse) {
});
2 Answers
Carlos Morales
13,880 PointsLook for the typo... ;)
Jameson Treu
137 Pointsoh my gosh >< it's always the smallest things like this that cause me the most pain.
thank you! :)
Carlos Morales
13,880 PointsCarlos Morales
13,880 PointsAlso, it looks like you have the correct answer above your response. If you're running on linux or mac, it might be a good time to look into diff. You can diff the two answers and find the issue right away. You'll be surprised by how much this will help you in the future. I don't know how to do this on windows, but I'm sure google can help. Good luck!