Photon Interview Question

If NodeJS is single-threaded. How does NodeJS handle asynchronous?