While Loop Through Array Javascript Mdn Sets