Ixigo.com Interview Question

How JavaScript works as a single thread?