While Loop Through Array Javascript Push Syntax