Ixigo.com interview question

How JavaScript works as a single thread?