iFIX Tech Global interview question

Convert a Synchronous JS Function to a Asynchronous function