Communicated over the phone, coding in Google Docs, only highlighting. Brief greetings, directly to the questions. A total of two JavaScript questions.
(1) Implement the next() method for traversing an array. No need to elaborate.
(2) Implement an asynchronous request queue. Requests should be executed in the order they are queued, with one request completed before the next one can be executed.
Must be familiar with closures in JavaScript. Both questions above are implemented using closures for variable memory. Hope this is helpful. Please reply if you have any questions.