Me already asking myself if this is really serious... Writing code on a white board?
It depends... what is the purpose? 200 is a hard limit, or are we expecting more element to be loaded? Where will the code be used? First viable product, refactoring or optimization? Do we already have a utility library, or this is a one-off case? Without context it would be easiest to write the for(i=0;i<200;i++)(//code) JS.
she: how many years of JS development do you have? me: +5 years SHE: have you ever wrote code? ME: SHE: have you ever worked with product? ME: sorry what kind of product you mean... SHE: A product! any product!!