Photon interview question

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