Staples Interview Question

How do you implement the async in Javascript? Some Tricky Arrays questions.