Damian McCarthy3,656 Points
I dont understand this one at all, how do I put this into a callback function.
I am not sure how to do this, I am not sure how to place this in a callback function.
const https = require('https'); https.get('https://teamtreehouse.com/chalkers.json')
Steven Parker159,270 Points
You may have misunderstood the instructions. They say, "Now, in the https.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."
So you're not being asked to put the current code into a callback function, they want you to create a callback function as an additional parameter of the call:
https.get('https://teamtreehouse.com/chalkers.json', /* your new callback goes here */)