I often uses the "for of" statement to traversal an iterator, just like the following:
for(item of myIterator){
console.log(item)
}
But recently, I found that the offical statement is:
for(let item of myIterator){
console.log(item)
}
And they are both executing right, I wonder if they have any difference. Thx!