Trading 212 interview question

Why would you use setTimeout(fn, 0)?