let x; let a = ['a','b','c'] let b = {name:'LIUNAN',age:19} for(x of a){ document.write(x) } for(x in a){ document.writeln(x+':'+a[x]) } for(x in b){ console.log(x+":"+b[x]) } </script>