yk you have to use async functions, and when you call functions you have to use await. it’s for the workflow to wait until all your api calls are made rather than go forward skipping your execute code card
so answering your question
you can use await to wait until all your api calls are made
or if you really need to know that last response is made, google for js async resolve / js variable resolve