Which statement correctly describes the behavior of the for...of loop in JavaScript?
The for...of loop in JavaScript iterates over the values of an iterable object like an array or string. For example, for(let value of [1, 2, 3]) { console.log(value); } will log 1, 2, and 3. This is different from for...in, which iterates over the enumerable properties of an object (the indices in an array). The for...of loop works with any iterable object, including built-in ones like Array, String, Map, Set, and custom iterables. It's particularly useful for arrays when you need the actual values and not the indices.