for (var i=0;i<cars.length;i++){
document.write(cars[i] );
}
for (var i=0,len=cars.length; i<len; i++){
document.write(cars[i] + "<br>");
}
var arr={fname:"Bill",lname:"Gates",age:56};
for (x in arr){ // x 为key
txt=txt + arr[x];
}
while (i<5){
i++;
}
do{
i++;
}while (i<5);