question while reviewing the block-level scope of ES6, I encountered the classic problem of for loop, that is, var a = []; for(var i=0;i<10;iPP){ a[i] = function(){ console.log(i); } } console.log(a[6]()) 10 how to make the ou...
if you have a question, add the code first: if(1===1) { let nameSet = new Set(); if (1 === 2) { do nothing } else { function getArrayFromOl() { console.log( nameSet: , nameSet) } getAr...