In a Javascript function, when both options need to be called (a promise and a callback), which one do you invoke first?