Which of the following correctly uses a for...of loop to iterate over an array?
The correct syntax for using a for...of loop to iterate over an array is: for(let item of myArray) { console.log(item); }. The for...of loop, introduced in ES6, is specifically designed for iterating over iterable objects like arrays, strings, and maps. It provides the actual values from the iterable, not the indices or property names. This makes it more convenient than for...in for arrays, which gives property names (indices for arrays), and more concise than traditional for loops or forEach() for simple iteration tasks.