C Sharp Loop Through Array Javascript Mdn