Javascript Wanderlust checkbox8

Hi,
In the checkbox 8 (https://www.codecademy.com/paths/web-development/tracks/webdev-intermediate-javascript/modules/intermediate-javascript-requests/projects/wanderlust)

I am wondering how do you know to send the request in that order?
I don’t see it in the documentation of foursquare (https://developer.foursquare.com/docs/api/venues/explore)

Thanks in advance.