Portside (US) Interview Question

Solve a JS task with asynchronous code: setTimeout and promises