const a = ["a", "b", "c"]; for (const val of a) { // You can use `let` instead of `const` if you like console.log(val); }