UNext interview question

2 coding questions related to asynchronous programming in js