//iterator for ...of循环 { let arr=['hello','world']; let map=arr[Symbol.iterator](); console.log(map.next()) console.log(map.next()) console.log(map.next()) } { let obj={ start:[1,3,2], end:[7,9,8], [Symbol.iterator](){ let self=this; let index=0; let…