Explain While Loop In Javascript With Constructor