Takuya Hirata23,293 Points
getProfiles without a parameter?
Please somebody explain why the getProfiles function can be called even though the function is called without a parameter?
Steven Parker201,932 Points
The "then" method takes up to two arguments, both callback functions. The first function is called on successful resolution, at which time it is passed the fulfillment value from the promise. So it does get a parameter when it is called (it is not being called at the spot where "then" is being used).
For more details, see the MDN page on "then".