Explain While Loop In Javascript Example Functions