What is the difference between setTimeout(fn, 0) and Promise.resolve().then(fn)? | Event Loop and Runtime | javascript Interview Questions | NextRound.in