Frage im Vorstellungsgespräch bei Align Technology

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