Bash Loop Through Array Javascript Gfg