Ayub Ansari
Sep 6, 2018 · 1 min read

Brandon Morelli

Thanks! great explanation.

Jut one question related to twitter example:

T.get('search/tweets', params, function(err, data, response) {
// This is where the magic will happen
} else {

I do understand we’ve passed a callback function as third argument; in this callback function, we have passed three arguments, so questions are:

  1. How do we know we need to pass three arguments?
  2. How do we know first argument would be error…and so on?
  3. How T.get(), high-order function, will pass response to callback function…?

    Ayub Ansari

    Written by

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade