Consider this code.
let array = [1,2,3,4,5]
for(let elem of array) {
console.log(elem)
}
Since here, I am not calling anything like array[Symbol.iterator]().since
we can only execute function by putting parenthesis after the expression that evaluates its value. here we are just writing for(let elem of array)
how does it execute a function named array[Symbol.iterator]
?