@manhnguyenv

Welcome to my blog!

Common JavaScript Errors

June 12, 2019 09:32

Common JavaScript Errors and Mistakes (edit)

Không nên: var a=[1,2,3];for(var x in a){console.log(a[x]);}

Nên dùng: var a=[1,2,3];a.forEach(function(x){console.log(x);});

 

 

Categories