Program Of While Loop In Javascript