Best way to code a loop in JavaScript | Heykuki News