Pergunta de entrevista da empresa Align Technology

How can javascript handle asynchronous code if it is single threaded?